import { type Instance } from "https://deno.land/x/smoldot2@light-js-deno-v2.0.31/internals/local-instance.d.ts";
Properties
Later generates a add-chain-id-allocated
event.
If this function is called multiple times, the add-chain-id-allocated
events are generated
in the same order as the function calls.
Then, later and asynchronously, a add-chain-result
event is generated in order to
indicate whether the initialization was actually successful. If success
is false
, then
the chainId
becomes unallocated.
Notifies the background executor that it should stop. Once it has effectively stopped,
a executor-shutdown
event will be generated.
Note that the instance can technically still be used, and all the functions still work, but
in practice nothing is being run in the background and as such it won't do much.
Existing connections are not closed. It is the responsibility of the API user to close
all connections.