Skip to content

Commit 51f67ea

Browse files
committed
Async bridges
Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
1 parent 162f650 commit 51f67ea

11 files changed

Lines changed: 1887 additions & 26 deletions

File tree

csp/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# ruff: noqa: I001
2+
# Import order is intentional - async_adapter must be imported after csp.node is defined
13
import os
24

35
from csp.baselib import *
@@ -31,6 +33,18 @@
3133

3234
from . import stats
3335

36+
# Import async adapter LAST since it uses @csp.node decorator which must be defined first
37+
from csp.impl.async_adapter import ( # noqa: E402
38+
async_alarm,
39+
async_for,
40+
async_in,
41+
async_node,
42+
async_out,
43+
await_,
44+
run_async,
45+
schedule_async_alarm,
46+
)
47+
3448
__version__ = "0.14.0"
3549

3650

0 commit comments

Comments
 (0)