Module buffalo_queuer

Buffalo queuer: buffers, deduplicates, and starts workers.

Copyright © 2012-2019 Arjan Scherpenisse

Behaviours: gen_server.

Authors: Arjan Scherpenisse (arjan@scherpenisse.net).

Description

Buffalo queuer: buffers, deduplicates, and starts workers
Implementation of gen_server behaviour.

Function Index

cancel_key/1Cancel the MFA running using specified Key.
cancel_mfa/1Cancel the MFA running.
queue/2Call the MFA after specified in Options time.
queue/3Call the MFA after specified in Options time using specified Key.
status/1Check if the task with the specified key is running or queued.

Function Details

cancel_key/1

cancel_key(Key) -> Result

Cancel the MFA running using specified Key.

cancel_mfa/1

cancel_mfa(MFA) -> Result

Equivalent to cancel_key(key(MFA)).

Cancel the MFA running.

queue/2

queue(MFA, Options) -> Result

Equivalent to queue(key(MFA), MFA, Options).

Call the MFA after specified in Options time.

queue/3

queue(Key, MFA, Options) -> Result

Call the MFA after specified in Options time using specified Key.

status/1

status(Key) -> Result

Check if the task with the specified key is running or queued.


Generated by EDoc