Microsoft.Bcl.AsyncInterfaces Provides the core logic for implementing a manual-reset or . The callback to invoke when the operation completes if was called before the operation completed, or if the operation completed before a callback was supplied, or null if a callback hasn't yet been provided and the operation hasn't yet completed. State to pass to . to flow to the callback, or null if no flowing is required. A "captured" or with which to invoke the callback, or null if no special context is required. Whether the current operation has completed. The result with which the operation succeeded, or the default value if it hasn't yet completed or failed. The exception with which the operation failed, or null if it hasn't yet completed or completed successfully. The current version of this value, used to help prevent misuse. Gets or sets whether to force continuations to run asynchronously. Continuations may run asynchronously if this is false, but they'll never run synchronously if this is true. Resets to prepare for the next operation. Completes with a successful result. The result. Complets with an error. Gets the operation version. Gets the status of the operation. Opaque value that was provided to the 's constructor. Gets the result of the operation. Opaque value that was provided to the 's constructor. Schedules the continuation action for this operation. The continuation to invoke when the operation has completed. The state object to pass to when it's invoked. Opaque value that was provided to the 's constructor. The flags describing the behavior of the continuation. Ensures that the specified token matches the current version. The token supplied by . Signals that the operation has completed. Invoked after the result or error has been set. Invokes the continuation with the appropriate captured context / scheduler. This assumes that if is not null we're already running within that . Provides a set of static methods for configuring -related behaviors on asynchronous enumerables and disposables. Configures how awaits on the tasks returned from an async disposable will be performed. The source async disposable. Whether to capture and marshal back to the current context. The configured async disposable. Configures how awaits on the tasks returned from an async iteration will be performed. The type of the objects being iterated. The source enumerable being iterated. Whether to capture and marshal back to the current context. The configured enumerable. Sets the to be passed to when iterating. The type of the objects being iterated. The source enumerable being iterated. The to use. The configured enumerable. Represents a builder for asynchronous iterators. Creates an instance of the struct. The initialized instance. Invokes on the state machine while guarding the . The type of the state machine. The state machine instance, passed by reference. Schedules the state machine to proceed to the next action when the specified awaiter completes. The type of the awaiter. The type of the state machine. The awaiter. The state machine. Schedules the state machine to proceed to the next action when the specified awaiter completes. The type of the awaiter. The type of the state machine. The awaiter. The state machine. Marks iteration as being completed, whether successfully or otherwise. Gets an object that may be used to uniquely identify this builder to the debugger. Indicates whether a method is an asynchronous iterator. Initializes a new instance of the class. The type object for the underlying state machine type that's used to implement a state machine method. Provides a type that can be used to configure how awaits on an are performed. Asynchronously releases the unmanaged resources used by the . A task that represents the asynchronous dispose operation. Provides an awaitable async enumerable that enables cancelable iteration and configured awaits. Configures how awaits on the tasks returned from an async iteration will be performed. Whether to capture and marshal back to the current context. The configured enumerable. This will replace any previous value set by for this iteration. Sets the to be passed to when iterating. The to use. The configured enumerable. This will replace any previous set by for this iteration. Returns an enumerator that iterates asynchronously through collections that enables cancelable iteration and configured awaits. An enumerator for the class. Provides an awaitable async enumerator that enables cancelable iteration and configured awaits. Advances the enumerator asynchronously to the next element of the collection. A that will complete with a result of true if the enumerator was successfully advanced to the next element, or false if the enumerator has passed the end of the collection. Gets the element in the collection at the current position of the enumerator. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. Allows users of async-enumerable methods to mark the parameter that should receive the cancellation token value from . Initializes a new instance of the class. Attribute used to indicate a source generator should create a function for marshalling arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time. This attribute is meaningless if the source generator associated with it is not enabled. The current built-in source generator only supports C# and only supplies an implementation when applied to static, partial, non-generic methods. Initializes a new instance of the . Name of the library containing the import. Gets the name of the library containing the import. Gets or sets the name of the entry point to be called. Gets or sets how to marshal string arguments to the method. If this field is set to a value other than , must not be specified. Gets or sets the used to control how string arguments to the method are marshalled. If this field is specified, must not be specified or must be set to . Gets or sets whether the callee sets an error (SetLastError on Windows or errno on other platforms) before returning from the attributed method. Specifies how strings should be marshalled for generated p/invokes Indicates the user is suppling a specific marshaller in . Use the platform-provided UTF-8 marshaller. Use the platform-provided UTF-16 marshaller. Exposes an enumerator that provides asynchronous iteration over values of a specified type. The type of values to enumerate. Returns an enumerator that iterates asynchronously through the collection. A that may be used to cancel the asynchronous iteration. An enumerator that can be used to iterate asynchronously through the collection. Supports a simple asynchronous iteration over a generic collection. The type of objects to enumerate. Advances the enumerator asynchronously to the next element of the collection. A that will complete with a result of true if the enumerator was successfully advanced to the next element, or false if the enumerator has passed the end of the collection. Gets the element in the collection at the current position of the enumerator. Provides a mechanism for releasing unmanaged resources asynchronously. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. Specifies that null is allowed as an input even if the corresponding type disallows it. Specifies that null is disallowed as an input even if the corresponding type allows it. Specifies that an output may be null even if the corresponding type disallows it. Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns. Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter may be null. Gets the return value condition. Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter will not be null. Gets the return value condition. Specifies that the output will be non-null if the named parameter is non-null. Initializes the attribute with the associated parameter name. The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null. Gets the associated parameter name. Applied to a method that will never return under any circumstance. Specifies that the method will not return if the associated Boolean parameter is passed the specified value. Initializes the attribute with the specified parameter value. The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to the associated parameter matches this value. Gets the condition parameter value. Specifies that the method or property will ensure that the listed field and property members have not-null values. Initializes the attribute with a field or property member. The field or property member that is promised to be not-null. Initializes the attribute with the list of field and property members. The list of field and property members that are promised to be not-null. Gets field or property member names. Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition. Initializes the attribute with the specified return value condition and a field or property member. The return value condition. If the method returns this value, the associated parameter will not be null. The field or property member that is promised to be not-null. Initializes the attribute with the specified return value condition and list of field and property members. The return value condition. If the method returns this value, the associated parameter will not be null. The list of field and property members that are promised to be not-null. Gets the return value condition. Gets field or property member names.