Skip to content

Commit 8a55531

Browse files
authored
Add asyncify bindings (AssemblyScript#972)
1 parent 241a7f5 commit 8a55531

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

std/assembly/bindings/asyncify.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
@unmanaged
2+
export class StackDescriptor {
3+
/** The index in linear memory of the start of the “asyncify stack”. */
4+
stackStart: usize;
5+
/** The index of the end of that stack region, which implies how big it is. */
6+
stackEnd: usize;
7+
}
8+
9+
/** Starts to unwind the call stack. */
10+
export declare function start_unwind(data: StackDescriptor): void;
11+
/** Stops unwinding the call stack. */
12+
export declare function stop_unwind(): void;
13+
/** Starts to rewind the call stack. */
14+
export declare function start_rewind(data: StackDescriptor): void;
15+
/** Stops rewinding the call stack. */
16+
export declare function stop_rewind(): void;

0 commit comments

Comments
 (0)