Class SpanFunc<T, R>
A function which receives a Span<T> and an additional state object.
Inheritance
- Object
- SpanFunc<T, R>
Declaration
public sealed class SpanFunc<T, R> : MulticastDelegate
Type Parameters
Name | Description |
---|---|
T |
The type of objects in the span |
R |
The type of the function's return value |
Constructors
SpanFunc(Object, IntPtr)
Declaration
public SpanFunc(object object, IntPtr method)
Parameters
Type | Name | Description |
---|---|---|
object |
||
method |
Methods
BeginInvoke(Span<T>, AsyncCallback, Object)
Declaration
public virtual IAsyncResult BeginInvoke(Span<T> span, AsyncCallback callback, object object)
Parameters
Type | Name | Description |
---|---|---|
Span<T> |
span |
|
callback |
||
object |
Returns
Type | Description |
---|---|
EndInvoke(IAsyncResult)
Declaration
public virtual R EndInvoke(IAsyncResult result)
Parameters
Type | Name | Description |
---|---|---|
result |
Returns
Type | Description |
---|---|
R |
Invoke(Span<T>)
Declaration
public virtual R Invoke(Span<T> span)
Parameters
Type | Name | Description |
---|---|---|
Span<T> |
span |
Returns
Type | Description |
---|---|
R |