when method

Future<Online> when(
  1. Waitable waitable,
  2. dynamic action(
    1. Online
    ), {
  3. Duration? timeout = null,
})

Implementation

Future<Online> when(
  Waitable waitable,
  dynamic Function(Online) action, {
  Duration? timeout = null,
}) async {
  var Online = await this;
  return Online.when(
    waitable,
    action,
    timeout: timeout,
  );
}