This is the cl-async-await Reference Manual, version 1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 04:40:20 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-async-await
An implementation of async/await for Common Lisp
Jeremy Phelps
AGPLv3
1
closer-mop
(system).
bordeaux-threads
(system).
simple-actors
(system).
package.lisp
(file).
utils.lisp
(file).
promise.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-async-await/cl-async-await.asd
cl-async-await/package.lisp
cl-async-await/utils.lisp
cl-async-await/promise.lisp
cl-async-await/cl-async-await.asd
cl-async-await
(system).
cl-async-await/utils.lisp
package.lisp
(file).
cl-async-await
(system).
acond
(macro).
aif
(macro).
(setf assoc)
(function).
if-let
(macro).
cl-async-await/promise.lisp
package.lisp
(file).
utils.lisp
(file).
cl-async-await
(system).
await
(generic function).
defun-async
(macro).
initialize-instance
(method).
lambda-async
(macro).
print-object
(method).
promise
(class).
await-internal
(function).
make-promise-handler
(function).
promise-error
(reader method).
(setf promise-error)
(writer method).
promise-inbox
(reader method).
promise-outbox
(reader method).
promise-resolution
(reader method).
(setf promise-resolution)
(writer method).
promise-thread
(reader method).
(setf promise-thread)
(writer method).
promise-thunk
(reader method).
raise-error-with-restarts
(function).
Packages are listed by definition order.
cl-async-await
bordeaux-threads
.
closer-common-lisp
.
simple-actors/ipc
.
await
(generic function).
defun-async
(macro).
lambda-async
(macro).
promise
(class).
acond
(macro).
aif
(macro).
assoc
(function).
(setf assoc)
(function).
await-internal
(function).
if-let
(macro).
make-promise-handler
(function).
promise-error
(generic reader).
(setf promise-error)
(generic writer).
promise-inbox
(generic reader).
promise-outbox
(generic reader).
promise-resolution
(generic reader).
(setf promise-resolution)
(generic writer).
promise-thread
(generic reader).
(setf promise-thread)
(generic writer).
promise-thunk
(generic reader).
raise-error-with-restarts
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Like LAMBDA-ASYNC but expands to a CL:DEFUN form instead of CL:LAMBDA.
Creates a closure that creates a PROMISE when FUNCALLed. The BODY
will run in its own thread.
See also: AWAIT
Wait for a PROMISE to resolve to one or more values. If the promise
succeeds, the values will be returned using CL:VALUES.
If an error occurs in the PROMISE thread, that error will be signalled in the thread
from which AWAIT is called, in a context where all the same restarts are defined
as are defined in the PROMISE thread. If INVOKE-RESTART is called with one of the
restarts defined in the PROMISE thread, that restart will be invoked in the PROMISE
thread, and AWAIT will return that restart’s value form.
If the stack frame for the call to AWAIT is unwound without invoking a restart,
the PROMISE thread will invoke its CL:ABORT restart.
Whether the PROMISE succeeds or fails, the result is memoized. Calling AWAIT a second time
on the same PROMISE will yield the same values.
If an error occurred and AWAIT is called a second time, the restarts will not be available, since the PROMISE thread is expected to be dead as a result of invoking the ABORT restart.
The final values that the promise generated. Only valid if the RESOLVEDP slot is non-nil.
list
:resolution
bordeaux-threads:lock
(bordeaux-threads:make-lock "promise-mutex")
common-lisp
.
(or condition null)
:error
bordeaux-threads
.
(or bordeaux-threads:thread null)
:thread
simple-actors/ipc::simple-process-mailbox
(simple-actors/ipc:make-mailbox)
This slot is read-only.
simple-actors/ipc::simple-process-mailbox
(simple-actors/ipc:make-mailbox)
This slot is read-only.
function
:thunk
This slot is read-only.
Return the cons in ALIST whose car is equal (by a given test or EQL) to the ITEM.
assoc
.
Jump to: | (
A D F G I L M P R |
---|
Jump to: | (
A D F G I L M P R |
---|
Jump to: | E I M O R S T |
---|
Jump to: | E I M O R S T |
---|
Jump to: | C F P S U |
---|
Jump to: | C F P S U |
---|