Autorun
Static Members
Ensures current autorun
won't be affected by the code after this call.
reobserve()
should be called to restore previous state.
Resume observing values and resume affecting current autorun
scope.
This should be called after an unobserve()
call.
Unbinds and destroys current autorun
. The name cease()
has been chosed there
so that it is unlikely to collide with other more common names suchs as stop
, unbind
etc...
and should make it more recognizable, along with observe()
and unobserve()
.
unobserved(func: Function): Void
Executes the given function synchronously and ensures the
current autorun
scope won't be affected
Instance Members
unbindFromAllAutorunArrays(): Void
new(onRun: Function, ?afterRun: Function): Void
Initialize a new autorun.
Name |
Type |
Default |
Description |
onRun |
Function |
|
The callback that will be executed and used to compute implicit bindings |
afterRun |
Function |
(optional) |
* (optional) A callback run right after onRun , not affecting implicit bindings. Useful when generating side effects without messing up binding dependencies. |
Private Members
reset event
Name |
Parameters |
:build |
ceramic.macros.EntityMacro.buildForCompletion() |
:autoBuild |
ceramic.macros.EntityMacro.buildForCompletion() |
:build |
tracker.macros.EventsMacro.build() |
:autoBuild |
tracker.macros.EventsMacro.build() |