Skip to content

Commit e8f432f

Browse files
committed
Merge the duplicated event loop how-to pages
Asyncio-Integration.md and Event-Loop-Integration.md were near-identical: same title, 803 and 796 lines, 25 of 28 code blocks and 69 of 77 headings byte-identical. Neither was a superset, so deleting either would have lost content: one carried Part 0 on same-thread asyncio mode and the comparison table, the other carried simulation mode and the matching CspEventLoop constructor and set_simulation_time_range reference. Fold both sets into Event-Loop-Integration.md, whose filename matches the title the two shared, and drop the other along with its sidebar entry. Every heading and code block from the deleted page is present in the merged one. Async.md is a different document, about the adapters rather than the loop, and shares no code with either. It restated how same-thread mode works, so that is now a link to the page that owns the topic. Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com>
1 parent a34413b commit e8f432f

5 files changed

Lines changed: 95 additions & 816 deletions

File tree

docs/wiki/_Sidebar.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ Notes for editors:
3737
- [Write Output Adapters](Write-Output-Adapters)
3838
- [Profile CSP Code](Profile-CSP-Code)
3939
- [Event Loop Integration](Event-Loop-Integration)
40-
- [Asyncio Integration](Asyncio-Integration)
4140

4241
**References**
4342

docs/wiki/dev-guides/Architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,4 +543,4 @@ ______________________________________________________________________
543543
- [CSP Node concepts](../concepts/CSP-Node.md) - Node anatomy and lifecycle hooks
544544
- [Execution Modes](../concepts/Execution-Modes.md) - Simulation vs realtime
545545
- [Adapters](../concepts/Adapters.md) - Writing custom adapters
546-
- [Asyncio Integration](../how-tos/Asyncio-Integration.md) - Using CSP with asyncio
546+
- [Asyncio Integration](../how-tos/Event-Loop-Integration.md) - Using CSP with asyncio

docs/wiki/how-tos/Async.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,7 @@ To use the legacy background thread mode instead:
8989
csp.run(my_graph, realtime=True, endtime=timedelta(seconds=5), asyncio_on_thread=True)
9090
```
9191

92-
To check if you're in asyncio mode:
93-
94-
```python
95-
from csp.impl.async_adapter import is_csp_asyncio_mode, get_csp_asyncio_loop
96-
97-
if is_csp_asyncio_mode():
98-
loop = get_csp_asyncio_loop()
99-
print(f"Running in CSP asyncio mode on {loop}")
100-
```
92+
See [Event Loop Integration](Event-Loop-Integration.md) for how this mode works, how to detect it from inside a node, and its requirements.
10193

10294
### Option 3: Custom Event Loop
10395

0 commit comments

Comments
 (0)