Skip to content

Commit 09f328e

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

11 files changed

Lines changed: 1835 additions & 26 deletions

File tree

csp/__init__.py

Lines changed: 13 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,17 @@
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+
schedule_async_alarm,
45+
)
46+
3447
__version__ = "0.14.0"
3548

3649

0 commit comments

Comments
 (0)