bindLifecycle method
将future关联到lifecycle
Implementation
Future<T> bindLifecycle(LifecycleObserverRegistry registry,
{bool throwWhenCancel = false}) {
return bindCancellable(registry.makeLiveCancellable(),
throwWhenCancel: throwWhenCancel);
}