watchClosed method
void
watchClosed()
Watches the native connection and completes closed when it goes away.
Implementation
void watchClosed() {
unawaited(
nativeRuntime
.oneShot(
'wt_connection_closed',
(opId) => b.wt_connection_closed(_connection, opId),
)
.then((_) => completeClosed(), onError: (_) => completeClosed()),
);
}