blob: ed1635fc2b1c606df85cca16dc9f06100702eae8 [file] [log] [blame] [view] [edit]
# whenBound property
Future<void> whenBound
_<span class="feature inherited">inherited</span>_
<p>A future that completes when the interface becomes bound.</p>
## Implementation
```dart
Future<void> get whenBound {
if (_currentState == InterfaceState.unbound) {
return stateChanges.firstWhere((s) => s == InterfaceState.bound);
}
if (_currentState == InterfaceState.bound) {
return Future.value();
}
return Future.error(
FidlStateException('Interface will never become bound'));
}
```