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
Parameters
Type | Name |
---|---|
WaaS.Runtime.ExecutionContext | context |
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
Type | Name |
---|---|
System.ReadOnlySpan<WaaS.Runtime.StackValueItem> | parameters |
System.Memory<WaaS.Runtime.StackValueItem> | results |