Twisted Reactor: Priority and Understanding

Two simple questions about a twisted reactor:

  • Is there a way to explicitly prioritize task scheduling?

  • Is it possible to check the reactor to list all pending tasks?

+3
source share
1 answer

No. The reactor does not prioritize planning; it just fires events in the order in which they return from your multiplexing / synchronization mechanism, depending on the specific implementation of the reactor (it is slightly different for different ones).

Implementing a planning API or fair queuing in a reactor would be a terrific addition, but it would be a non-trivial job.

+3
source

Source: https://habr.com/ru/post/1795576/


All Articles