simple-tasks

API Reference

simple-tasks

A very simple task scheduling framework.

SIMPLE-TASKS

  • Class NO-THREADING-STUMP
    No slots.
  • Variable +NO-THREADING-STUMP+
    (make-instance 'simple-tasks:no-threading-stump)
  • Variable +STATUS-STARTED+
    '(:created :scheduled :running)
  • Variable +STATUS-RUNNING+
    '(:running)
  • Variable +STATUS-ENDED+
    '(:completed :errored :stopped)
  • Generic-Function STATUS (status-object)
  • Generic-Function STATUS= (a b)
  • Class STATUS-OBJECT
    STATUS   Accessor: STATUS
  • Type STATUS
  • Method STATUS= ((a status-object) (b status-object))
  • Method STATUS= ((a status-object) (b list))
  • Method STATUS= ((a status-object) b)
  • Method STATUS= ((b list) (a status-object))
  • Method STATUS= (b (a status-object))
  • Method STATUS= ((a list) (b list))
  • Condition RUNNER-CONDITION  (CONDITION)
  • Condition RUNNER-NOT-STARTED  (RUNNER-CONDITION, ERROR)
  • Condition RUNNER-NOT-STOPPED  (RUNNER-CONDITION, WARNING)
  • Generic-Function START-RUNNER (runner)
  • Generic-Function STOP-RUNNER (runner)
  • Generic-Function SCHEDULE-TASK (task runner)
  • Generic-Function RUN-TASK (task)
  • Generic-Function INTERRUPT-TASK (task runner)
  • Variable *RUNNER*
    nil
  • Class RUNNER  (STATUS-OBJECT)
    No slots.
  • Method START-RUNNER ((runner runner))
  • Method START-RUNNER ((runner runner))
  • Method STOP-RUNNER ((runner runner))
  • Method SCHEDULE-TASK (task (runner runner))
  • Generic-Function QUEUE (runner)
  • Generic-Function BACK-QUEUE (runner)
  • Generic-Function LOCK (object)
  • Generic-Function CVAR (object)
  • Generic-Function THREAD (object)
  • Class QUEUED-RUNNER  (RUNNER)
    QUEUE   Reader: QUEUE   Writer:
    BACK-QUEUE   Reader: BACK-QUEUE   Writer:
    LOCK   Reader: LOCK
    CVAR   Reader: CVAR
    THREAD   Reader: THREAD   Writer:
  • Method STOP-RUNNER ((runner queued-runner))
  • Function MAKE-RUNNER-THREAD (runner)
  • Generic-Function TASK (task-condition)
  • Condition TASK-CONDITION  (CONDITION)
  • Condition TASK-ALREADY-SCHEDULED  (TASK-CONDITION, ERROR)
  • Condition TASK-ERRORED  (TASK-CONDITION, WARNING)
  • Generic-Function TASK-READY-P (task)
  • Generic-Function RUNNER (task)
  • Generic-Function ERROR-ENVIRONMENT (task)
  • Generic-Function AWAIT (task status)
  • Class TASK  (STATUS-OBJECT)
    RUNNER   Accessor: RUNNER
    ERROR-ENVIRONMENT   Accessor: ERROR-ENVIRONMENT
  • Method TASK-READY-P ((task task))
  • Method SCHEDULE-TASK ((task task) runner)
  • Method RUN-TASK ((task task))
  • Method INTERRUPT-TASK ((task task) (null null))
  • Method INTERRUPT-TASK ((task task) (true (eql t)))
  • Generic-Function FUNC (call-task)
  • Generic-Function RETURN-VALUES (call-task)
  • Class CALL-TASK  (TASK)
    FUNC   Accessor: FUNC
    RETURN-VALUES   Accessor: RETURN-VALUES
  • Method RETURN-VALUES ((task call-task))
  • Method RUN-TASK ((task call-task))
  • Class NOTIFYING-TASK  (TASK)
    LOCK   Accessor: LOCK
    CVAR   Accessor: CVAR
  • Method RUN-TASK ((task notifying-task))
  • Method AWAIT ((task notifying-task) status)
  • Class BLOCKING-TASK  (NOTIFYING-TASK)
    No slots.
  • Method SCHEDULE-TASK ((task blocking-task) runner)
  • Method SCHEDULE-TASK ((task blocking-task) runner)
  • Class BLOCKING-CALL-TASK  (CALL-TASK, BLOCKING-TASK)
    No slots.
  • Function CALL-AS-TASK (function runner &optional (task-class 'blocking-call-task))
  • Macro WITH-BODY-AS-TASK ((runner &optional (task-class ''blocking-call-task)) &body body)
  • Generic-Function CALLBACK (callback-task)
  • Class CALLBACK-TASK  (CALL-TASK)
    CALLBACK   Accessor: CALLBACK
  • Method RUN-TASK ((task callback-task))

Also exports

  • COMMON-LISP:ABORT