Callback
A callback with no return value. Equivalent to () => Unit
.
Attributes
- See also
-
CallbackTo
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Callback.type
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ResultGuard.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Convenience for calling dom.alert
.
Convenience for calling dom.alert
.
Attributes
Convenience for calling dom.console.assert
.
Convenience for calling dom.console.assert
.
Attributes
Creates an debounce boundary.
Creates an debounce boundary.
Save it as a val
somewhere because it relies on internal state that must be reused.
Attributes
Creates an debounce boundary.
Creates an debounce boundary.
Save it as a val
somewhere because it relies on internal state that must be reused.
Attributes
Creates an debounce boundary.
Creates an debounce boundary.
Save it as a val
somewhere because it relies on internal state that must be reused.
Attributes
Wraps a Future so that it is repeatable, and so that its inner callback is run when the future completes.
Wraps a Future so that it is repeatable, and so that its inner callback is run when the future completes.
The result is discarded. To retain it, use CallbackTo.future instead.
Because the Future
is discarded, when an exception causes it to fail, the exception is re-thrown. If you want the exception to be ignored or handled differently, use CallbackTo.future instead and then .void
to discard the future and turn the result into a Callback
.
WARNING: Futures are scheduled to run as soon as they're created. Ensure that the argument you provide creates a new Future; don't reference an existing one.
Attributes
Convenience for calling dom.console.info
.
Convenience for calling dom.console.info
.
Attributes
Callback that isn't created until the first time it is used, after which it is reused.
Callback that isn't created until the first time it is used, after which it is reused.
Attributes
Convenience for calling dom.console.log
.
Convenience for calling dom.console.log
.
Attributes
Run all given callbacks.
Run all given callbacks.
All results are discarded. Any exceptions get a printStackTrace
and are then discarded, and the next callback run.
Attributes
- Since
-
2.0.0
Callback that is recreated each time it is used.
Callback that is recreated each time it is used.
Attributes
Convenience for applying a condition to a callback, and returning Callback.empty
when the condition is already satisfied.
Convenience for applying a condition to a callback, and returning Callback.empty
when the condition is already satisfied.
Notice the condition is strict. If non-strictness is desired use callback.unless(cond)
.
Value parameters
- cond
-
The condition required to be
false
for the callback to execute.
Attributes
Convenience for calling dom.console.warn
.
Convenience for calling dom.console.warn
.
Attributes
Convenience for applying a condition to a callback, and returning Callback.empty
when the condition isn't satisfied.
Convenience for applying a condition to a callback, and returning Callback.empty
when the condition isn't satisfied.
Notice the condition is strict. If non-strictness is desired use callback.when(cond)
.
Value parameters
- cond
-
The condition required to be
true
for the callback to execute.
Attributes
Deprecated methods
Serves as a temporary placeholder for a callback until you supply a real implementation.
Serves as a temporary placeholder for a callback until you supply a real implementation.
Unlike ???
this doesn't crash, it just prints a warning to the console.
Also it's not really deprecated; that's just so you get a compiler warning as a reminder.
Attributes
- Deprecated
- true
Serves as a temporary placeholder for a callback until you supply a real implementation.
Serves as a temporary placeholder for a callback until you supply a real implementation.
Unlike ???
this doesn't crash, it just prints a warning to the console.
Also it's not really deprecated; that's just so you get a compiler warning as a reminder.
Attributes
- Deprecated
- true
Callback that is recreated each time it is used.
Callback that is recreated each time it is used.
https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_name
Attributes
- Deprecated
- true