Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

timeout #33

Closed
simongarisch opened this issue Aug 28, 2020 · 1 comment
Closed

timeout #33

simongarisch opened this issue Aug 28, 2020 · 1 comment

Comments

@simongarisch
Copy link

Hi there.

I was wondering where the choice of 10 came from for the timeout variable in nest_asyncio.py.

        timeout = 0 if ready or self._stopping \
            else min(max(0, scheduled[0]._when - now), 10) if scheduled \
            else None

To get my code to work I had to increment this slightly.

Thanks,
Simon.

@erdewit
Copy link
Owner

erdewit commented Sep 21, 2020

The select timeout is increased to one day, which is what asyncio uses as default.

I'm puzzled how this value can have any effect on running code, would have thought it doesn't matter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants