MCPcopy Index your code
hub / github.com/plotly/dash / _async_invoke_callback

Function _async_invoke_callback

dash/_callback.py:47–54  ·  view source on GitHub ↗
(
    func, *args, **kwargs
)

Source from the content-addressed store, hash-verified

45
46
47async def _async_invoke_callback(
48 func, *args, **kwargs
49): # used to mark the frame for the debugger
50 # Check if the function is a coroutine function
51 if inspect.iscoroutinefunction(func):
52 return await func(*args, **kwargs) # %% callback invoked %%
53 # If the function is not a coroutine, call it directly
54 return func(*args, **kwargs) # %% callback invoked %%
55
56
57def _invoke_callback(func, *args, **kwargs): # used to mark the frame for the debugger

Callers 1

async_add_contextFunction · 0.85

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…