22. High-level API Reference
412
www.yoctopuce.com
YFiles
files
→
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.
Содержание Yocto-Display
Страница 1: ...Yocto Display User Manual...
Страница 2: ......
Страница 40: ...34 www yoctopuce com...
Страница 52: ...46 www yoctopuce com...
Страница 84: ...78 www yoctopuce com...
Страница 92: ...86 www yoctopuce com...
Страница 130: ...124 www yoctopuce com...
Страница 158: ...22 High level API Reference 152 www yoctopuce com On failure throws an exception or returns a negative error code...
Страница 422: ...416 www yoctopuce com...
Страница 424: ...24 Characteristics 418 www yoctopuce com...