SideModuleHost
此内容尚不支持你的语言。
Defined in: sideModules/host.ts:21
Realm-agnostic acquirer for optional native modules.
Methods
Section titled “Methods”acquire()
Section titled “acquire()”acquire(
id):Promise<SideModule|null>
Defined in: sideModules/host.ts:23
Instantiate id for this realm (cached); null if unavailable or it failed.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<SideModule | null>
source()?
Section titled “source()?”
optionalsource(id):Promise<SideModuleSource|null>
Defined in: sideModules/host.ts:26
The glue and binary id is instantiated from, for a worker to instantiate
its own copy; absent where the realm has none to hand over.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<SideModuleSource | null>