Skip to content

Remove deprecated usage of tornado.IOLoop.run_sync #6049

Closed
@fjetter

Description

@fjetter

As one of the first steps of removing the tornado IOLoop from the code bas is to remove the usage of IOLoop.run_sync in favour of asyncio.run. The two have semantic differences and require us to touch the way we set up a few of our tests. The way tornado interacts with the event loop via IOLoop.run_sync is deprecated in CPython. This usage is connected to multiple warnings like "pending task while loop is closing", "task not awaited", etc.

Requirements

  • Deprecated call to IOLoop.run_sync has been replaced by asyncio.run as appropriate

Implementation notes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions