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.2.tar.gz
(5.1 kB
view details)
File details
Details for the file microasync-0.2.tar.gz
.
File metadata
- Download URL: microasync-0.2.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48315a9a9d845bb42d9afb1ee73d959b0327cd2f181badba724d286c3c43f798 |
|
MD5 | b44e752223ec1bf1382635e49b3113f1 |
|
BLAKE2b-256 | 07bf1f6c41d73cf13d78e3c10ea6978a8ef60e74e12149f11a4e55298374ff16 |