Skip to content

Commit

Permalink
Add small docs explanation for @js "...converted to javascript..." se…
Browse files Browse the repository at this point in the history
…ction
  • Loading branch information
NHDaly committed Oct 12, 2018
1 parent 908e8f4 commit 91a2aa2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rpc/rpc.jl
Expand Up @@ -65,6 +65,10 @@ js(o, j; callback=true) = js(o, JSString(string(jsstring(j)...)); callback=callb
Execute `expr`, converted to javascript, inside `win`, and return the result.
`expr` will be parsed as julia code, and then converted directly to the
equivalent javascript. Language keywords that don't exist in julia can be
represented with their macro equivalents, `@var`, `@new`, etc.
See also: `@js_`, the asynchronous version.
# Examples
Expand All @@ -84,6 +88,10 @@ end
Execute `expr`, converted to javascript, asynchronously inside `win`, and return
immediately.
`expr` will be parsed as julia code, and then converted directly to the
equivalent javascript. Language keywords that don't exist in julia can be
represented with their macro equivalents, `@var`, `@new`, etc.
See also: `@js`, the synchronous version that returns its result.
# Examples
Expand Down

0 comments on commit 91a2aa2

Please sign in to comment.