Could we deal with executors in a more modular way? #4534
thomaseizinger
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Why is it not enough to pass a custom executor via If the API is missing from SwarmBuilder, we could just add that. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment, we have this notion of spawning tasks on an executor and thus have to differentiate, which executor we spawn these on.
That isn't very modular and it makes it difficult for users to add custom functionality in. For example, Lighthouse has a custom executor to spawn tasks with some metrics added to them: sigp/lighthouse#4695 (comment)
When thinking about this, I figured we could also do the following:
The downside of this proposal is that users must handle this event, i.e. it is present in every event-loop. On the upside, this makes a
Swarm
executor agnostic.Beta Was this translation helpful? Give feedback.
All reactions