Skip to content

Conversation

syrupipy
Copy link
Contributor

Adds ability to use existing tokio runtime instead of creating new one.

When use_current_tokio_runtime() is called, Context uses tokio::spawn instead of executor.runtime.spawn.

Fixes #1652

@patrick-ogrady
Copy link
Contributor

patrick-ogrady commented Sep 26, 2025

For this to work properly, we'll also have to update TokioNetwork. I take that back, this should work without any modification there.

I think the right approach here is to not use an ENV but somehow make this a configuration option.

@syrupipy
Copy link
Contributor Author

I think the right approach here is to not use an ENV but somehow make this a configuration option.

Yeah, make sense.

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.

[runtime] Add tokio Variant That Uses Existing Instance
2 participants