facebook / facebook/folly

Futures vs eventbase

Open
#1,016 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
30.5k
Forks
5.9k
PR merge metrics
No merged PRs in 30d

Description

This is more of a question than an issue. If there are appropriate newbie mailers setup for this purpose, please let me know.

Futures vs eventbase

Are these competing or can they be used together?

Is future “via executor” typically a CPUexecutor? Or can it use IOexector too? When would you go via the IO executor? Probably never?

If a eventbase thread wants to wait on a future, where does that waiting happen? Is it handled by eventFD and notification queue mechanism in the eventbase thread?

So is it fair to say that future and then’ning should be done from eventbase thread because there you have a eventbase that will handle the “then” scheduling?

If you create a .then chain from a CPUexecutor, how would the scheduling happen? Does it even make sense?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.