PiFuture
@Js
const class PiFuture : Future
Future with conveniences for presentation model and user interface
Set to summary message that describes the operation of this future
Get the description of this future set via describe
Register a callback to handle both ok and error conditions Return result to chain to next future
Convenience to handle onOk with dict result
Register callback to handle when future completes with an error
Convenience to handle onOk with grid result
Convenience to handle onOk with item result
Register callback to handle when future completes successfully
This describe(Str msg)
Set to summary message that describes the operation of this future
Str description()
Get the description of this future set via describe
This onComplete(|Err?,Obj?->Obj?| cb)
Register a callback to handle both ok and error conditions Return result to chain to next future.
This onDict(|Dict?->Obj?| cb)
Convenience to handle onOk with dict result.
This onErr(|Err->Obj?| cb)
Register callback to handle when future completes with an error. Return result to chain to next future.
This onGrid(|Grid?->Obj?| cb)
Convenience to handle onOk with grid result.
This onItem(|Item?->Obj?| cb)
Convenience to handle onOk with item result.
This onOk(|Obj?->Obj?| cb)
Register callback to handle when future completes successfully. Return result to chain to next future.