Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2321·mopidy

Use await on core calls in the HTTP frontend

Author: jodalCreated Sep 27, 2026Updated Sep 27, 2026
LabelsA-ext-httpready-for-agent

:robot: Summary

When Pykka's async support is released, await on a Pykka future becomes a real non-blocking await, meant only for callers on an event loop. It is no longer another way to call .get(). Then Mopidy's own endpoints, the docs and the example app can call core with await core.x.y() instead of sync endpoints or .get() in a thread.

Do not start this ticket before that Pykka release.

Parent

mopidy/mopidy#2312

Acceptance criteria

  • Mopidy requires the Pykka version with async support.
  • JSON-RPC and /mopidy/ws call core with await, and do not use a thread pool for core calls.
  • The docs and the example app use await core.x.y().
  • The existing server, handler and JSON-RPC tests pass without changes to their assertions.

Blocked by

  • The Pykka release with async support, where await on a future is a real non-blocking await for callers on an event loop. There is no issue to link to yet.

Source: mopidy/mopidy

View original on GitHubView discussion on GitHub