Expose the is_shutdown API to all bindings

This commit is contained in:
Brandon Vandegrift 2025-04-25 22:54:07 -04:00
parent e087d8ad32
commit 759af948bc
17 changed files with 135 additions and 2 deletions

View file

@ -627,6 +627,11 @@ class VeilidJS extends Veilid {
VeilidState.fromJson(jsonDecode(await _wrapApiPromise<String>(
js_util.callMethod(wasm, 'get_veilid_state', []))));
@override
Future<bool> isShutdown() async =>
await _wrapApiPromise<bool>(
js_util.callMethod(wasm, 'is_shutdown', []));
@override
Future<void> attach() =>
_wrapApiPromise(js_util.callMethod(wasm, 'attach', []));