Skip to content

Fix/streaming halt inside nested runtime#123

Merged
tuddman merged 3 commits into
mainfrom
fix/streaming-halt-inside-nested-runtime
Jun 5, 2026
Merged

Fix/streaming halt inside nested runtime#123
tuddman merged 3 commits into
mainfrom
fix/streaming-halt-inside-nested-runtime

Conversation

@tuddman

@tuddman tuddman commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

tuddman added 3 commits June 4, 2026 10:51
… panic

stream_orderbook_channel called tx.blocking_send inside a tokio::spawn
task, which panics ("Cannot block the current thread from within a
runtime") on a multi-thread runtime — crashing any in-runtime async
consumer such as the rebalancer calling fetch_top_of_book.

Extract an async-callback core (stream_orderbook_with) shared by both
the sync-callback stream_orderbook primitive and the channel variant;
the channel now uses tx.send(entry).await, awaiting backpressure rather
than blocking the runtime thread. No public API changes.
@tuddman tuddman merged commit 8281171 into main Jun 5, 2026
@tuddman tuddman deleted the fix/streaming-halt-inside-nested-runtime branch June 5, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant