Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning on macOS #17

Open
jacopo-massa opened this issue Apr 27, 2020 · 1 comment
Open

warning on macOS #17

jacopo-massa opened this issue Apr 27, 2020 · 1 comment

Comments

@jacopo-massa
Copy link

jacopo-massa commented Apr 27, 2020

I'm using timeloop with pybluez to discover bluetooth devices every x seconds.
But during the loop, the following warning is printed:

WARNING: nextEventMatchingMask should only be called from the Main Thread! This will throw an exception in the future.

I'm running the loop in the main thread with
tl.start(block=True)

And the loop doesn't continue. How can I solve this problem?

@woz5999
Copy link

woz5999 commented Jul 16, 2020

Even if block=True, the function is still run in a separate through. The blocking appears to be done artificially solely for the purpose of enabling different execution flows.

https://github.com/sankalpjonn/timeloop/blob/master/timeloop/app.py#L38-L41
https://github.com/sankalpjonn/timeloop/blob/master/timeloop/app.py#L64-L65

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

No branches or pull requests

2 participants