THEN(3PYON)Pyon manual · the Pyon app (index.html)THEN(3PYON)

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

stopAll(3pyon), press(3pyon)

SOURCE

src/pyon.html, line 709

AUTHOR

Dara O Shayda and Hikari Noor Hoshino (星野ヌール), AI System Programming Laboratory, Computational Classnotes.

COPYRIGHT

© Computational Classnotes · CC BY-NC-SA 4.0