Skip to content

Commit

Permalink
Update README.md (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmenyus authored Dec 1, 2024
1 parent 91c5955 commit 1415a5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ If you do not want to synchronize the execution of your JavaScript and Python co
py.setSyncJsAndPyInCallback(false);
```

In this case one possible order of the execution could look like this (the actual order is determened by the runtime, jsFunction will run independently)
In this case one possible order of the execution could look like this (the actual order is determened by the runtime, jsFunction will run completely async)
```
- start of py.call
- start of your_function
Expand All @@ -267,7 +267,7 @@ In this case one possible order of the execution could look like this (the actua
- end of jsFunction
```

Because jsFunction runs independently it is not possible to pass the result of jsFunction back to Python. But passing arguments from Python to jsFunction is still possible.
Because jsFunction runs async it is not possible to pass the result of jsFunction back to Python. But passing arguments from Python to jsFunction is still possible.

### Doing some ML with Python and Node
Let's say you have the following python code in **logreg.py**
Expand Down

0 comments on commit 1415a5d

Please sign in to comment.