Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Support for async function #46

Open
devalexqt opened this issue Dec 24, 2017 · 1 comment
Open

Support for async function #46

devalexqt opened this issue Dec 24, 2017 · 1 comment

Comments

@devalexqt
Copy link

Is it support async call for function from template?
Something like this.
https://stackoverflow.com/questions/47955502/node-js-swig-is-it-support-async-function

@nylen
Copy link

nylen commented Aug 11, 2018

Hi @devalexqt (and anyone else who reads this issue), not really. You need to first calculate all of your data using async callbacks in Node.js code. Then once you have everything, pass it synchronously to the template. There is a good, much more detailed answer on the StackOverflow question now: https://stackoverflow.com/a/47959830/106302

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants