22. High-level API Reference
www.yoctopuce.com
371
YAnButton
anbutton
→
wait_async()
Waits for all pending asynchronous commands on the module to complete, and invoke the user-
provided callback function.
js
function wait_async(
callback
,
context
)
es
function wait_async(
callback
,
context
)
The callback function can therefore freely issue synchronous or asynchronous commands, without
risking to block the Javascript VM.
Parameters :
callback
callback function that is invoked when all pending commands on the module are completed. The
callback function receives two arguments: the caller-specific context object and the receiving
function object.
context
caller-specific object that is passed as-is to the callback function
Returns :
nothing.
Summary of Contents for Yocto-Display
Page 1: ...Yocto Display User Manual...
Page 2: ......
Page 40: ...34 www yoctopuce com...
Page 52: ...46 www yoctopuce com...
Page 84: ...78 www yoctopuce com...
Page 92: ...86 www yoctopuce com...
Page 130: ...124 www yoctopuce com...
Page 422: ...416 www yoctopuce com...