Skip to content

[runtime] Add tokio Variant That Uses Existing Instance #1652

@patrick-ogrady

Description

@patrick-ogrady

runtime::tokio assumes that it has control over tokio:

let runtime = Builder::new_multi_thread()
.worker_threads(self.cfg.worker_threads)
.max_blocking_threads(self.cfg.max_blocking_threads)
.enable_all()
.build()
.expect("failed to create Tokio runtime");

We should add a variant that doesn't require access directly to the runtime and instead use tokio::spawn (etc) to interact with an externally available tokio instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions