-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking Issue for task::Waker::noop #98286
Copy link
Copy link
Closed
Labels
AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-async-nominatedNominated for discussion during an async working group meeting.Nominated for discussion during an async working group meeting.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.WG-asyncWorking group: Async & awaitWorking group: Async & await
Milestone
Metadata
Metadata
Assignees
Labels
AsyncAwait-TriagedAsync-await issues that have been triaged during a working group meeting.Async-await issues that have been triaged during a working group meeting.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-async-nominatedNominated for discussion during an async working group meeting.Nominated for discussion during an async working group meeting.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.WG-asyncWorking group: Async & awaitWorking group: Async & await
Type
Fields
Give feedbackNo fields configured for issues without a type.
Feature gate:
#![feature(noop_waker)]This is a tracking issue for
task::Waker::noop, a way to easily cratetask::Wakers that do nothing.Public API
Steps / History
task::Waker::noop#96875Unresolved Questions
RawWaker::noop()? (I don't think so, I can't think of a use case for it)Context::noop()? Depending on the directionContextgoes a “noop context” might not even make sense in future.Should it be an associated constant instead? That would allow forlet cx = &mut Context::from_waker(&Waker::NOOP);to work on one line (without additional local variables) which is convenient.Waker::noop()has now been changed to&Waker.