bindLifecycle method

Future<T> bindLifecycle(
  1. ILifecycle registry, {
  2. bool throwWhenCancel = false,
})

将future关联到lifecycle

Implementation

Future<T> bindLifecycle(ILifecycle registry, {bool throwWhenCancel = false}) {
  return bindCancellable(registry.makeLiveCancellable(),
      throwWhenCancel: throwWhenCancel);
}