##// END OF EJS Templates
corrected code to support ts strict mode...
corrected code to support ts strict mode safe.ts - more tight typings - added notImplemented stub function - added fork funtion - added keys function (like Object.keys but extracts keys type) - added isKeyof typeguard - added 'primitive' union type added EventProvider for the observable

File last commit:

r9:c1c00bfb5487 propose cancellat...
r115:691199f665e0 ioc ts support
Show More
activate.puml
24 lines | 341 B | text/plain | TextLexer
cin
Async operation cancellation proposal...
r9 @startuml
participant Component as a
participant Other as b
[-> a : activate(ct)
activate a
<-- a : promise
a -> a : onActivating(ct)
activate a
a -> b : doAsyncWork(ct)
deactivate a
deactivate a
activate b
[-> b : ct.cancel
b --> a : reject(Cancelled)
deactivate b
activate a
a -> a : setFailState()
[<-- a : reject(Cancelled)
@enduml