register abstract method

void register(
  1. CallbackWithReturn<CallbackInputType, CallbackReturnType> callback
)

Registers a new callback function.

The callback will be stored and invoked when invoke is called.

Implementation

void register(
    CallbackWithReturn<CallbackInputType, CallbackReturnType> callback);