Skip to main content

Green threads and CSP for micropython.

Project description

Green threads and CSP for micropython.

Api documentation.

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


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)

Uploaded Source

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

Hashes for microasync-0.2.tar.gz
Algorithm Hash digest
SHA256 48315a9a9d845bb42d9afb1ee73d959b0327cd2f181badba724d286c3c43f798
MD5 b44e752223ec1bf1382635e49b3113f1
BLAKE2b-256 07bf1f6c41d73cf13d78e3c10ea6978a8ef60e74e12149f11a4e55298374ff16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page