@FunctionalInterface @JsFunction public interface Immediate
An Immediate object is used to execute code synchronously, outside the usual Presto's cycle. Presto will temporarily change the state to Presto.State.IMMEDIATE, then restore the state to its initial value.
Usage: Call Presto.now(Immediate) with an immediate object instance or a lambda expression.
Note: You can only call Event.preventDefault() on an event from an Immediate context. Also some injecting CSS in Chrome does not work inside an animation frame.
| Modifier and Type | Method and Description |
|---|---|
void |
immediate()
Execute the action synchronously.
|
Copyright © 2018 Xalys. All rights reserved.