Share via


SetNotificationForWaitCompletion Method

Sets or clears the TASK_STATE_WAIT_COMPLETION_NOTIFICATION state bit.

Namespace:  System.Threading.Tasks

Assembly:  mscorlib (in mscorlib.dll)

internal void SetNotificationForWaitCompletion(bool enabled)

Parameters

enabled

true to set the bit; false to unset the bit.

Remarks

The debugger sets this bit to help step out of an async method body. If enabled is true, this method must be called only on a task that has not yet been completed. If enabled is false, this method may be called on completed tasks. In either event, it should only be used for promise-style tasks.

See Also

Reference

Task Class - Internal Members