Skip to content

Allow using an app-provided thread #1923

@DemiMarie

Description

@DemiMarie

Describe the feature you'd like supported

It would be nice if MsQuic allowed apps to provide their own threads, and perform event polling themselves.

Proposed solution

See above.

Additional context

In some environments, such as Lua and Node.js, all callbacks must eventually be run on a single thread. This currently requires marshaling them back to the main thread, which is less efficient than if MsQuic could integrate into the built-in event loop. Other environments, such as Rust with Tokio, already provide their own high-performance event loops, and having to use a separate thread for QUIC would require additional locking.

Metadata

Metadata

Assignees

Labels

Area: APIArea: CoreRelated to the shared, core protocol logicexternalProposed by non-MSFTfeature requestA request for new functionality

Type

Projects

  • Status

    Should be written
  • Status

    Slipped

Relationships

None yet

Development

No branches or pull requests

Issue actions