1
0
Fork 0
forked from fun/fun

Added some await pattern and added a scheduler to the stdlib. Broken! (0.39.13)

This commit is contained in:
Johannes Findeisen 2026-03-30 14:53:11 +02:00
commit 4956e44e60
7 changed files with 304 additions and 3 deletions

View file

@ -159,6 +159,7 @@ These require optional external libraries. See docs/external/.
## IO (./examples/io)
- async_http_client.fun — nonblocking HTTP client
- await_http_client.fun — nonblocking HTTP client using lib/async/scheduler.fun (await-style helpers)
- csv_reader.fun — parse CSV files
- file_io.fun, read_write_file.fun — file operations
- word_count.fun — classic WC example

View file

@ -35,7 +35,7 @@ See docs/stdlib.md → net/ for a quick index of these modules.
- Sends the response with `sock_send()` and closes the client
- Run:
- `./examples/net/http_static_server.fun`
- Open http://127.0.0.1:8088/
- Open http://127.0.0.1:8080/
## Example: http_server.fun (static + simple .fun CGI)
- File: `examples/net/http_server.fun`