Skip to main content

Store functions and methods for delayed callback

Project description

Call Queue provides a mixin class to store functions, methods, or any callable object with the associated arguments and keyword arguments.

Each Queuable object has a key, so queues can be separated by need.

It can be used directly:

#!/usr/bin/env python

from queueable import Queueable

Arthur = Queueable('human')

Trillian = Queuable('human')

Ford = Queuable('alien')

Zaphod = Queueable('alien')

def drink_tea(response):
        print "This stuff {}".format(response)

Arthur.queue(drink_tea, "tastes filthy") # Nothing happens

Ford.process_queue() # Nothing happens

Trillian.process_queue() # runs the queued drink_tea function

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

CallQueue-0.1.0.zip (3.5 kB view details)

Uploaded Source

File details

Details for the file CallQueue-0.1.0.zip.

File metadata

  • Download URL: CallQueue-0.1.0.zip
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for CallQueue-0.1.0.zip
Algorithm Hash digest
SHA256 ad9f560fe73e27c1c3063f123b8a551986a158b874e46e2380e62a8cf895e880
MD5 446a825ede2ba20762fe54d3f52393ae
BLAKE2b-256 8f2ae31484c229cb8701d9364de05175858eea35d8999bb95bd481804e872f81

See more details on using hashes here.

Supported by

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