Constructor
.ctor
init(IterableTypeName: string, IteratorTypeName: string, AcquisitionMethod: string = "GetAsyncIterator", AdvanceMethod: string = "MoveNextAsync", CurrentProperty: string = "Current", DisposalMethod: string = "DisposeAsync", AllowGeneratorBodies: bool = false) -> ()
Declaring type: RuntimeAsyncIterationContract
Namespace: Raven.CodeAnalysis
Assembly: Raven.CodeAnalysis.dll
Source file: RuntimeIterationContract.cs
Selects an alternative nominal asynchronous iteration protocol. Acquisition is parameterless; advancement must await to Boolean and disposal to void or unit. This describes consumption, not generator synthesis or runtime suspension.
Parameters
| Name | Type | Description |
|---|---|---|
IterableTypeName |
String | |
IteratorTypeName |
String | |
AcquisitionMethod |
String | |
AdvanceMethod |
String | |
CurrentProperty |
String | |
DisposalMethod |
String | |
AllowGeneratorBodies |
Boolean |