You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "Ji-Xinyou (via GitHub)" <gi...@apache.org> on 2023/04/08 12:26:20 UTC
[GitHub] [incubator-opendal] Ji-Xinyou commented on issue #1741: research: How to support async API for C binding?
Ji-Xinyou commented on issue #1741:
URL: https://github.com/apache/incubator-opendal/issues/1741#issuecomment-1500881435
It seems `hyper` let async task returns a Future, and used `push_executors` to push them to the executors, which further poll the task until completion.
Looks like a minimal async runtime in C 🤣 🤣 🤣 , anyone interested could check [this](https://github.com/hyperium/hyper/blob/89558f13a8aed5f0e8c94e04d398e207067d0336/src/ffi/task.rs) for more details.
I think now maybe the C binding could be developed in the following order, and we still have plenty of time to think about our implementation of async operation.
1. Focus on the `memory` operator first, making it full-fledged.
2. Support other services, but only for blocking services.
3. Support the async operations.
Any ideas?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org