Skip to main content

Class AsyncExternalFunction

Represents an asynchronous function that can be invoked from a WebAssembly module.

Assembly: WaaS.Core.dll
View Source
Declaration
public abstract class AsyncExternalFunction : IInvocableFunction, IExternal

Derived:
WaaS.Runtime.AsyncExternalFunctionDelegate, WaaS.Runtime.AsyncExternalFunctionPointer

Implements:
WaaS.Runtime.IInvocableFunction, WaaS.Runtime.IExternal

Properties

Type

View Source
Declaration
public abstract FunctionType Type { get; }

Methods

CreateFrame(ExecutionContext, ReadOnlySpan<StackValueItem>)

View Source
Declaration
public StackFrame CreateFrame(ExecutionContext context, ReadOnlySpan<StackValueItem> inputValues)
Returns

WaaS.Runtime.StackFrame

Parameters
TypeName
WaaS.Runtime.ExecutionContextcontext
System.ReadOnlySpan<WaaS.Runtime.StackValueItem>inputValues

InvokeAsync(ReadOnlySpan<StackValueItem>, Memory<StackValueItem>)

View Source
Declaration
public abstract ValueTask InvokeAsync(ReadOnlySpan<StackValueItem> parameters, Memory<StackValueItem> results)
Returns

System.Threading.Tasks.ValueTask

Parameters
TypeName
System.ReadOnlySpan<WaaS.Runtime.StackValueItem>parameters
System.Memory<WaaS.Runtime.StackValueItem>results

Implements