Common Lisp Package: CHANL.EXAMPLES

README:

FUNCTION

Public

SYNCOUT (STREAM FORMAT-CONTROL &REST FORMAT-ARGUMENTS)

Call `format' synchronously, with the same arguments. Returns no useful values.

Undocumented

FIRST-N-PRIMES (N)

Private

COPY-WRAPPED-CONDITION (SEQUENCE)

Return a copy of SEQUENCE which is EQUAL to SEQUENCE but not EQ.

FUTURE-CALL (FUNCTION &KEY (INITIAL-BINDINGS *DEFAULT-SPECIAL-BINDINGS*) (NAME Anonymous FUTURE))

Executes FUNCTION in parallel and returns a future that will yield the return value of that function. INITIAL-BINDINGS may be provided to create dynamic bindings inside the thread.

FUTURE-CHANNEL (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

FUTURE-SELECT (&REST FUTURES)

Blocks until one of the futures in FUTURES (a sequence) is ready to yield, then returns that future.

YIELD (FUTURE)

Yield the values returned by FUTURE. If FUTURE isn't ready to yield yet, block until it is.

Undocumented

COPY-FUTURE (INSTANCE)

COUNTER (CHANNEL)

ENSURE-LIST (X)

ERATOSTHENES

FILTER (PRIME IN OUT)

FUTURE-P (OBJECT)

MAKE-FUTURE (&KEY ((CHANNEL DUM0) (MAKE-INSTANCE 'BUFFERED-CHANNEL SIZE 1)))

SIEVE (OUTPUT-CHANNEL)

WRAP-CONDITION (CONDITION &AUX (RESTARTS (COMPUTE-RESTARTS CONDITION)))

WRAPPED-CONDITION (STRUCTURE)

WRAPPED-REPLY-CHANNEL (STRUCTURE)

WRAPPED-RESTARTS (STRUCTURE)

WRAPPED-THREAD (STRUCTURE)

MACRO

Public

CLEANUP-LEFTOVERS (&BODY BODY)

Evaluate the forms in BODY, then kill any procs which have been created in the meantime. NOTE: This will also kill procs spawned from other threads.

Undocumented

WITH-CONDITION-DUMPER (CHANNEL &BODY BODY)

Private

FUTURE-EXEC ((&KEY INITIAL-BINDINGS NAME) &BODY BODY)

Convenience macro that makes the lambda for you.

Undocumented

FUTURE-LET ((&REST BINDINGS) &BODY BODY)

GENERIC-FUNCTION

Private

Undocumented

EXECUTION-ERROR-CAUSE (CONDITION)

EXECUTION-ERROR-FUTURE (CONDITION)

VARIABLE

Private

Undocumented

*TERMINATE*

CLASS

Private

Undocumented

FUTURE

CONDITION

Private

Undocumented

EXECUTION-ERROR