Skip to content

Conversation

@michalc
Copy link
Contributor

@michalc michalc commented Oct 13, 2018

This allows slower contents managers to not block the event loop by allowing more of their API to return futures.

Other usages of contents manager functions are already wrapped in maybe_future, including a use of file_exists in contents/handlers.py

@michalc michalc changed the title Allow contents manager exists functions to each return a future Allow more contents manager functions to return future Oct 17, 2018
This allows slower contents managers to not block the event loop by allowing
more of their API to return futures.

Other usages of contents manager functions are already wrapped in maybe_future,
including a use of `file_exists` in contents/handlers.py
@michalc michalc changed the title Allow more contents manager functions to return future Allow more contents manager functions to return futures Oct 18, 2018
@minrk minrk added this to the 6.0 milestone Oct 18, 2018
@minrk minrk merged commit 9928105 into jupyter:master Oct 18, 2018
@minrk
Copy link
Member

minrk commented Oct 18, 2018

Thanks!

@michalc michalc deleted the contents_manager_exists_can_return_futures branch October 18, 2018 08:27
michalc added a commit to michalc/notebook that referenced this pull request Nov 24, 2019
michalc added a commit to michalc/notebook that referenced this pull request Nov 24, 2019
This is a follow up to jupyter#4099,
wrapping another user of contents manager get with `maybe_future` to
allow it to yield the event loop.
michalc added a commit to michalc/notebook that referenced this pull request Nov 24, 2019
This is a follow up to jupyter#4099,
wrapping other uses of contents manager get with `maybe_future` to
allow it to yield the event loop.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants