PostSharpAPI ReferencePost­Sharp.​AspectsFlow­BehaviorYield
Open sandboxFocus

FlowBehavior.Yield Field

Awaits for an awaiter. Available only for OnEntry(MethodExecutionArgs) and OnResume(MethodExecutionArgs) advices applied to async methods.

Namespace: PostSharp.Aspects
Assembly: PostSharp.dll
Syntax
public const FlowBehavior Yield
Returns
Type Description
FlowBehavior
Remarks

In the future, this may also cause a value to be yielded in iterator methods. Currently, it is the same as Continue for iterator methods.