Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
CPACK
Home
List packs
Submit pack
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
13.3.1 Asynchronous access to JavaScript from Prolog
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Using SWI-Prolog in your browser (WASM)
Accessing JavaScript from Prolog
Asynchronous access to JavaScript from Prolog
await/2
is_async/0
Packages
[semidet]
is_async
True when we can call
await/2
in the current state. This implies Prolog has been called from JavaScript code that is prepared to deal with Prolog yielding and Prolog is not inside a callback from C (WASM).
ClioPatria
(version
V3.1.1-51-ga0b30a5
)