It'd be nice if we have saner and more consistent way to access WebTaskRunners for worker threads like TaskRunnerHelper and ParentFrameTaskRunners for the main thread.
This would be helpful...
- for avoiding accessing a per-thread heap objects from a foreign thread. For example, (indirectly) retaining a reference to ExecutionContext is a common way to post a task to that context thread, but this would be error-prone and not encouraged ( issue 673711 ).
- for introducing task priority / throttling mechanism ( issue 670534 ).
Comment 1 by nhiroki@chromium.org
, Feb 22 2017