qi
modules do not support pCall but they do support a more generic asynchronous mechanism
qi.async()
.
If you want your call to be asynchronous you can use
qi.async()
which returns a
qi.Future
.
This
qi.Future
allows you to object the resulting value or error.

However some
NAOqi
modules really depend on pCall. Most notably tts.say and motion.moveTo.
In this case, you can use the pCall method provided by
ALModule
.
It will behave the same as the old way and return a pcallId, usable with the stop and the wait method of
ALModule
.

Warning

the pCall method is only available on ALModule, not on
qi
services. So it’s availability depends on the service you are calling.