type

Function

@Js
mixin Function

Function is a computation modeled by the sys::Func spec.

methods

call

Call the function with component and argument.

callAsync

Call the function with component and argument asynchronously.

isAsync

Return if this function must be called asynchronously

Slot Details

call

abstract Obj? call(Comp self, Obj? arg)

Call the function with component and argument. Raise exception if the function must be called async.

callAsync

abstract Void callAsync(Comp self, Obj? arg, |Err?,Obj?| cb)

Call the function with component and argument asynchronously. Invoke the given callback with an exception or result object.

isAsync

abstract Bool isAsync()

Return if this function must be called asynchronously