Skip to main content

Concurrency-related Python utils

Project description

splut

Concurrency-related Python utils

API

splut.actor

Spawn Objects

class Spawn()

__call__
def __call__(*objs)

Create an actor backed by the given object(s), each of which is used in a single-threaded way.

splut.actor.future

Future Objects

class Future()

wait
def wait()

Block until there is an outcome then return/raise it.

andforget
def andforget(log)

Send any exception to the given log.

splut.bg

Sleeper Objects

class Sleeper()

interrupt
def interrupt()

If a sleep is in progress that sleep returns now, otherwise the next sleep will return immediately. This is similar behaviour to interrupting a maybe-sleeping thread in Java.

splut.delay

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

splut-15.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

splut-15-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

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