nextTick static method

TFuncCancel nextTick(
  1. dynamic func()
)

Run func in the next tick (i.e. in zero milliseconds). Returns a cancellation callback to cancel the pending invocation of func.

Implementation

static TFuncCancel nextTick(Function() func) {
	return Tick._makeTimer(Tick._ZERO_DURATION, func);
}