zlacker

[parent] [thread] 2 comments
1. eviks+(OP)[view] [source] 2024-01-20 04:36:57
> Fixing maybe_async and adding _async and _sync suffixes to each endpoint in our library.

Can you not add a suffix only to one variant, e.g., "_sync", as far as I understood you just need different names?

replies(1): >>mst+Qm
2. mst+Qm[view] [source] 2024-01-20 10:16:07
>>eviks+(OP)
I use quite a few promise/future based APIs that have a sync version and an async version and the async methods are called get_p or get_f or so, which feels like very little noise when I'm already typing 'await' in front of/after it.
replies(1): >>eviks+fp
◧◩
3. eviks+fp[view] [source] [discussion] 2024-01-20 10:46:09
>>mst+Qm
That's why I thought async should be shorter, and also since it seemed for this lib async is the primary interface
[go to top]