Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @coroutine
- def do_something()
- result = yield from some_function()
- return result
- @coroutine
- def do_something()
- future = asyncio.Future()
- result = yield from some_function()
- future.set_result(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement