We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a6e491 commit 3d9b303Copy full SHA for 3d9b303
README.md
@@ -31,15 +31,14 @@ let* conn = Blink.request conn req () in
31
Finally, once we have made a request, we can call `Blink.stream` to
32
stream-parse the results and receive the parts as they come:
33
34
-```ocaml
+```ocaml,norun
35
let rec run conn =
36
let* conn, msgs = Blink.stream conn in
37
match msgs with
38
| [ `Done ] -> ()
39
| msgs -> handle_messages msgs; run conn
40
in
41
-let* () = run conn in
42
-(* ... *)
+run conn
43
```
44
45
Or if we prefer to consume all messages and pull together a response, we can do so with `Blink.await`:
0 commit comments