once<T> static method

ZenWorkerHandle once<T>(
  1. ValueNotifier<T> obs,
  2. void callback(
    1. T
    )
)

Implementation

static ZenWorkerHandle once<T>(
  ValueNotifier<T> obs,
  void Function(T) callback,
) {
  return watch<T>(obs, callback, type: WorkerType.once);
}