mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-09-22 22:14:40 -04:00
Expose the is_shutdown API to all bindings
This commit is contained in:
parent
e087d8ad32
commit
759af948bc
17 changed files with 135 additions and 2 deletions
|
@ -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', []));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue