Skip to content

Commit a1dbdd5

Browse files
committed
[Concurrency] Remove useless comment about assert in AsyncTask::complete().
This comment is really about an assert that's no longer present, so it should just go away.
1 parent 3cad5c5 commit a1dbdd5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

stdlib/public/Concurrency/TaskPrivate.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -831,11 +831,6 @@ struct AsyncTask::PrivateStorage {
831831
while (true) {
832832
assert(oldStatus.getInnermostRecord() == NULL &&
833833
"Status records should have been removed by this time!");
834-
835-
// Don't assert !isStatusRecordLocked(). It can be legitimately true here,
836-
// for example if another thread is canceling this task right as it
837-
// completes.
838-
839834
assert(oldStatus.isRunning());
840835

841836
// Remove drainer, enqueued and override bit if any

0 commit comments

Comments
 (0)