File: AsyncBuildVariant.md

package info (click to toggle)
node-quickjs-emscripten 0.23.0%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,900 kB
  • sloc: ansic: 71,457; javascript: 7,638; makefile: 506; sh: 153
file content (63 lines) | stat: -rw-r--r-- 1,682 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
[quickjs-emscripten](../README.md) / [Exports](../modules.md) / AsyncBuildVariant

# Interface: AsyncBuildVariant

quickjs-emscripten provides multiple build variants of the core WebAssembly
module. These variants are each intended for a different use case.

To create an instance of the library using a specific build variant, pass the
build variant to [newQuickJSWASMModule](../modules.md#newquickjswasmmodule) or [newQuickJSAsyncWASMModule](../modules.md#newquickjsasyncwasmmodule).

Asyncified build variants:

- [RELEASE_ASYNC](../modules.md#release_async) - This is the default asyncified build variant, for general purpose use.
- [DEBUG_ASYNC](../modules.md#debug_async) - Asyncified build variant with debug logging.

## Table of contents

### Properties

- [type](AsyncBuildVariant.md#type)

### Methods

- [importFFI](AsyncBuildVariant.md#importffi)
- [importModuleLoader](AsyncBuildVariant.md#importmoduleloader)

## Properties

### type

• **type**: ``"async"``

#### Defined in

[ts/variants.ts:54](https://github.com/justjake/quickjs-emscripten/blob/main/ts/variants.ts#L54)

## Methods

### importFFI

▸ **importFFI**(): `Promise`<`QuickJSAsyncFFIConstructor`\>

#### Returns

`Promise`<`QuickJSAsyncFFIConstructor`\>

#### Defined in

[ts/variants.ts:55](https://github.com/justjake/quickjs-emscripten/blob/main/ts/variants.ts#L55)

___

### importModuleLoader

▸ **importModuleLoader**(): `Promise`<`EmscriptenModuleLoader`<`QuickJSAsyncEmscriptenModule`\>\>

#### Returns

`Promise`<`EmscriptenModuleLoader`<`QuickJSAsyncEmscriptenModule`\>\>

#### Defined in

[ts/variants.ts:56](https://github.com/justjake/quickjs-emscripten/blob/main/ts/variants.ts#L56)