Green threads and CSP for micropython.
Project description
Green threads and CSP for micropython.
Installation
For installing run:
pip-micropython install microasync
Basic usage
For basic usage you should create coroutines and start main loop. For example, script that prints ok! every ten seconds:
from microasync.async import loop, coroutine, Delay
@coroutine
def main_coroutine():
while True:
print('ok!')
yield Delay(10)
main_coroutine()
loop()
More examples:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
microasync-0.3.tar.gz
(5.1 kB
view details)
File details
Details for the file microasync-0.3.tar.gz.
File metadata
- Download URL: microasync-0.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa7f6bdb925113311e9acb58a5a859426e66d5224bacdcbf452077c2091cd902
|
|
| MD5 |
4032608fd549415fe5e6fd69048e1372
|
|
| BLAKE2b-256 |
88983db3c1c5cb0ded9b43aa784bd9d10c4e78b06414cab91ff5c2cc636730a8
|