NAME
then — queue a job, at most two waiting
SYNOPSIS
then(job)
DESCRIPTION
Every action of the creatures goes through this queue, one after another, so that quick taps never pile up: when two are already waiting, a new one is dropped. A job runs only if its token is still current, so ■ cancels everything queued.
PARAMETERS
job: an asynchronous function of the token.
RETURN VALUE
Nothing.
SEE ALSO
SOURCE
AUTHOR
Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.
COPYRIGHT
© Computational Classnotes · CC BY-NC-SA 4.0
