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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file splut-15.tar.gz.

File metadata

  • Download URL: splut-15.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for splut-15.tar.gz
Algorithm Hash digest
SHA256 ac3c7566f09ea5930202bc031436c8605c68946b570e4605fe15ac1465f1070e
MD5 d2077d2832d3e36f33b6db099ca38ef7
BLAKE2b-256 b52c411cdbd3a0b97e6630c85626e26199e49cb36e9a0c7018ac9cc1d72d7b84

See more details on using hashes here.

File details

Details for the file splut-15-py3-none-any.whl.

File metadata

  • Download URL: splut-15-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for splut-15-py3-none-any.whl
Algorithm Hash digest
SHA256 f409dcf445692eb46c1ebda27aa57e3cc6fc997e2558b753b7a840fca6bd3e60
MD5 feb34c6c6e317fe69df11b552bbaaec2
BLAKE2b-256 729c54b824929f7203b1bcc35121cac30a6e186c62323b96b0cbdea1cac7c39d

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