3 ms·
> 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
by eviks 3y ago
> 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?
- mst 3y agoI 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.
- eviks 3y agoThat's why I thought async should be shorter, and also since it seemed for this lib async is the primary interface