generated from MatrixAI/TypeScript-Demo-Lib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7e2bc07
commit 16c1549
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
// IF you have a `@monitored` | ||
// That means you have `@timedCancellable` at thes ame time | ||
// You can do `@timed` `@cancellable` | ||
// But instead `@timedCancellable` combines them all | ||
// SO @monitored does it too | ||
// Cause if you can lock things... you can also use the timer and monitor | ||
// Due to the usageo f the locking ctx | ||
// await ctx.monitor.lock(...) | ||
// someotherfunction(ctx) | ||
// it passes the monitor down there | ||
// Well the problem is that whe nyou do it | ||
// you'd need to have the timer monitor applied? | ||
// you don'tn eed to apply the ctx | ||
// the ctx is automtaically applied( so the function ctx of timer and signal) | ||
// isautomatically applied to all LOCKS | ||
// when you do this you also need to use the ability to create a monitor | ||
// obj.withMonitor(async (monitor) => { | ||
// }) | ||
|
||
// I wnat to see to quickly prototyep what this will look like | ||
|
||
|
||
function monitored() { | ||
|
||
} | ||
|
||
export default monitored; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters