Skip to content

Qobuz: resolve the web-player constants off the IoEvent pump #492

Description

@LargeModGames

Is your feature request related to a problem? Please describe.
constants() in src/infra/qobuz/dispatch.rs resolves the Qobuz web-player constants inline on the serial IoEvent pump on the first Qobuz event of a process: a login-page GET and, on a new bundle version, the 9 MB bundle GET (up to 120 s). Every other event, for every source, waits behind it. The code documents this as accepted for v1.

Describe the solution you'd like
Resolve the constants on a detached task and re-dispatch the event when they are ready, the way begin_login already spawns its wait. A more general option is letting a source router return "handled, run detached" so the service lane covers source events too.

Describe alternatives you've considered
Resolving at source selection time instead of at first use; the pump would still block if the user acts before the scrape finishes.

Additional context
From the review of #489.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions