delay method

Effect<Value> delay(
  1. Duration duration
)

Delays emissions by duration on the default scheduler, allowing debounced or scheduled work without manually handling timers.

Example:

final delayedValue = Effect.value("update").delay(const Duration(milliseconds: 50));

Implementation

Effect<Value> delay(Duration duration) => delayWithScheduler(duration, defaultScheduler);