Search found 3 matches

by dexterlabora
Wed Jan 11, 2017 4:46 pm
Forum: General Discussion and Questions
Topic: How to use non blocking functions, asynchronous tasks
Replies: 21
Views: 21660

Re: How to use non blocking functions, asynchronous tasks

Thanks for the detailed response, very appreciated. Sadly, when I try to import this library, its not available. MicroPython v1.8.7-7-gb5a1a20a3 on 2017-01-09; ESP module with ESP8266 Type "help()" for more information. >>> import uasyncio Traceback (most recent call last): File "<stdin>", line 1, i...
by dexterlabora
Wed Jan 11, 2017 10:17 am
Forum: General Discussion and Questions
Topic: How to use non blocking functions, asynchronous tasks
Replies: 21
Views: 21660

Re: How to use non blocking functions, asynchronous tasks

Thanks for the feedback. I looked at this, but it appears I have to install a third party library on my ESP8266 (WeMos D1), but the instructions were a little vague. I also found this blog post, which uses the "threading" library. This sounds exactly like what I need, but it doesn't appear to be ava...
by dexterlabora
Tue Jan 10, 2017 3:25 pm
Forum: General Discussion and Questions
Topic: How to use non blocking functions, asynchronous tasks
Replies: 21
Views: 21660

How to use non blocking functions, asynchronous tasks

What's the easiest way to run a function as a non blocking task? I'm used to writing in JavaScript where you can easily have long or infinite tasks running in the background or that can be triggered by event handlers. ``` setTimeout( function(){ console.log("my super long task"); }, 10000); console....