diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -24,6 +24,9 @@ scripts, for convenience: | |||
| 24 | [localhost:8080](http://localhost:8080) running an example web page | 24 | [localhost:8080](http://localhost:8080) running an example web page |
| 25 | (require darkhttpd, see below). | 25 | (require darkhttpd, see below). |
| 26 | 26 | ||
| 27 | If one of the `run-*` scripts is missing, it means that that example | ||
| 28 | is only meant to run in Node.js, or only as a script in a web page. | ||
| 29 | |||
| 27 | The examples have been tested only on Linux, but should work on any | 30 | The examples have been tested only on Linux, but should work on any |
| 28 | UNIX system, and should be easy to adapt to Windows or other OSes. | 31 | UNIX system, and should be easy to adapt to Windows or other OSes. |
| 29 | Pull requests are welcome. | 32 | Pull requests are welcome. |
| @@ -63,3 +66,12 @@ In `03_threads` we build a more complicated example based on | |||
| 63 | [pthreads](https://en.wikipedia.org/wiki/Pthreads). To run this | 66 | [pthreads](https://en.wikipedia.org/wiki/Pthreads). To run this |
| 64 | example, the web server has to be configured to provide the correct | 67 | example, the web server has to be configured to provide the correct |
| 65 | `Cross-Origin-*` headers, see `03_threads/run-server.sh` for details. | 68 | `Cross-Origin-*` headers, see `03_threads/run-server.sh` for details. |
| 69 | |||
| 70 | ## 4. Don't block the main thread | ||
| 71 | |||
| 72 | In `04_no_block` we avoid our calculations blocking the main browser | ||
| 73 | thread by using a web worker. | ||
| 74 | |||
| 75 | ## 5. Callback functions | ||
| 76 | |||
| 77 | In `05_callback` the example is extended to include a callback function. | ||
