Struct AsyncHandoff
A struct containing information about the execution of an AsyncPattern.
This struct cleans up its own resources when the callee calls its Done() method to mark completion.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Danmokou.Danmaku.Patterns
Assembly: cs.temp.dll.dll
Syntax
public struct AsyncHandoff
Constructors
AsyncHandoff(in AsyncHandoff, in CommonHandoff, Action)
Derive an AsyncHandoff from a parent for localized execution. The common handoff is copied.
Declaration
public AsyncHandoff(in AsyncHandoff parent, in CommonHandoff ch, Action callback)
Parameters
Type | Name | Description |
---|---|---|
AsyncHandoff | parent | |
CommonHandoff | ch | |
System.Action | callback |
AsyncHandoff(in DelegatedCreator, Action, in SMHandoff, V2RV2)
The common handoff is NOT copied from SMHandoff.
Declaration
public AsyncHandoff(in DelegatedCreator bc, Action callback, in SMHandoff smh, V2RV2 rv2Override)
Parameters
Type | Name | Description |
---|---|---|
DelegatedCreator | bc | |
System.Action | callback | |
SMHandoff | smh | |
V2RV2 | rv2Override |
Fields
callback
Declaration
public Action callback
Field Value
Type | Description |
---|---|
System.Action |
ch
Declaration
public CommonHandoff ch
Field Value
Type | Description |
---|---|
CommonHandoff |
Properties
Cancelled
Declaration
public readonly bool Cancelled { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
Cleanup()
Dispose the copied handoff.
Declaration
public readonly void Cleanup()
Done()
Send completion information via the callback.
This does not clean up resources- Cleanup() must be called separately.
Declaration
public readonly void Done()
RunPrependRIEnumerator(IEnumerator)
Declaration
public void RunPrependRIEnumerator(IEnumerator cor)
Parameters
Type | Name | Description |
---|---|---|
IEnumerator | cor |