Skip to content

Commit

Permalink
Bring back RunContinuationAsynchronously=true
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossanlop committed Apr 15, 2021
1 parent b05dab9 commit d5344be
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ protected ValueTaskSource(
_strategy = strategy;
_result = TaskSourceCodes.NoResult;

_source = default;
_source.RunContinuationsAsynchronously = true;

_overlapped = bytes != null &&
_strategy.CompareExchangeCurrentOverlappedOwner(this, null) == null ?
_strategy._fileHandle.ThreadPoolBinding!.AllocateNativeOverlapped(preallocatedOverlapped!) : // allocated when buffer was created, and buffer is non-null
Expand Down

0 comments on commit d5344be

Please sign in to comment.