ConfigureAwaitOptions Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Options to control behavior when awaiting.
This enumeration supports a bitwise combination of its member values.
public enum class ConfigureAwaitOptions
[System.Flags]
public enum ConfigureAwaitOptions
[<System.Flags>]
type ConfigureAwaitOptions =
Public Enum ConfigureAwaitOptions
- Inheritance
- Attributes
Fields
ContinueOnCapturedContext | 1 | Attempts to marshal the continuation back to the original SynchronizationContext or TaskScheduler present on the originating thread at the time of the await. |
ForceYielding | 4 | Forces an await on an already completed Task to behave as if the Task wasn't yet completed, such that the current asynchronous method will be forced to yield its execution. |
None | 0 | No options specified. |
SuppressThrowing | 2 | Avoids throwing an exception at the completion of awaiting a Task that ends in the Faulted or Canceled state. |
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za