close method
Gracefully finishes the stream.
Implementation
@override
Future<void> close() async {
final event = await nativeRuntime.oneShot(
'wt_send_stream_finish',
(opId) => b.wt_send_stream_finish(_handle, opId),
);
if (!event.isOk) throw event.exception('close');
}