Async (non-blocking) call of server funcs

The synchronous (blocking) nature of the anvil.server.call function is refreshingly straight-forward and in most cases just what I need. However, I do sometimes wish to call server functions asynchronously (non-blocking) akin to the features of fetch in JS-land. I’ve therefore written a non-blocking “version” of the standard call function.

Feel free to clone: Anvil | Login

7 Likes

You might also find anvil-extras non-blocking module useful
(recently moved from anvil-labs and available on the development branch)

https://anvil-extras.readthedocs.io/en/latest/guides/modules/non_blocking.html

9 Likes

Sorry for botheringyou, but it’s somehow not available in v2.3.0
image

image

It’s on the dev branch. It will be in the next release, but it’s not in 2.3.0

2 Likes