How to design opendal c binding's async api #6082
Replies: 4 comments 6 replies
-
|
2 ideas:
|
Beta Was this translation helpful? Give feedback.
-
|
Cool. I'm looking forward to it. Go binding can be beneficial from this. |
Beta Was this translation helpful? Give feedback.
-
|
Some other things to consider:
I can imagine that users who want to use the async API don't want to have tokio included. Or maybe the biggest question is: Where are our C users, and what do they want? |
Beta Was this translation helpful? Give feedback.
-
|
I've implemented a basic design #6072 for comments. Async APIsOpenDAL’s C binding mirrors the Rust async operator, but keeps all runtime management on the Rust side so C callers never need to embed Tokio. The design is intentionally future/await centric:
Because futures carry ownership of the eventual metadata/error objects, the Need non-blocking integration with your own loop? Call See |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
c users have some choices. The main problem is c doesn't have
async/await/yieldkeyword.all seems complicated...
the async io part seems also complicated...
Refer to #6072 for more context.
Beta Was this translation helpful? Give feedback.
All reactions