Open
Description
Sync versions of functions are defined in separate modules, and require maintaining a separate set of functions with identical signatures.
There is a possibility to explore using a decorator to expose sync versions of functions as properties.
Example:
@support_sync
async def some_fn():
pass
await some_fn()
some_fn.sync()
Rough decorator setup:
def support_sync(fn):
fn.sync = sync(fn)
Types can be inferred from the input fn
.
Metadata
Metadata
Assignees
Labels
No labels