New issue
Advanced search Search tips

Issue 766354 link

Starred by 1 user

Issue metadata

Status: Untriaged
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature



Sign in to add a comment

Support delayed tasks in CancelableTaskTracker

Project Member Reported by imch...@chromium.org, Sep 18 2017

Issue description

While working on https://chromium-review.googlesource.com/c/chromium/src/+/663104, I noticed that the CancelableTaskTracker does not support delayed tasks. So instead I had to track CancelableCallbacks manually. The alternative isn't too bad, but I thought it would be nice for CancelableTaskTracker to support delayed tasks for consistency with task runner API.

It looks like there is at least one more place that would like this [1]. There was an attempt to add support for delayed tasks, but it seems abandoned [2].

[1] https://cs.chromium.org/chromium/src/media/midi/midi_scheduler.cc?q=cancelabletasktracker+delayed&sq=package:chromium&dr=C&l=27
[2] https://chromiumcodereview.appspot.com/1048373003/
 

Comment 1 by gab@chromium.org, Sep 25 2017

Are those use cases different from base::Timer which is effectively a cancelable delayed task?

Sign in to add a comment