{ } Raw JSON

bundles / jupyter_core latest / jupyter_core / utils / run_sync

function

jupyter_core.utils:run_sync

source: /jupyter_core/utils/__init__.py:135

Signature

def run_sync(coro: Callable[..., Awaitable[T]]) → Callable[..., T]

Summary

Wraps coroutine in a function that blocks until it has executed.

Parameters

coro : coroutine-function

The coroutine-function to be executed.

Returns

: result

Whatever the coroutine-function returns.

Aliases

  • jupyter_core.utils.run_sync