Skip to content

Commit d202476

Browse files
committed
tweak: other readme note, lol
1 parent 93e5a48 commit d202476

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ const host = await Comrade.worker<MySchematic>((shell, rig) => ({
7979
await host.mul(2, 3) // 6
8080
await host.div(6, 2) // 3
8181
```
82-
- 💁 *note — each side can call the other*
83-
> ```ts
84-
> await Comrade.worker<MySchematic>((shell, rig) => ({
85-
> async add(a, b) {
86-
>
87-
> // we can call the host functions
88-
> await shell.host.mul(2, 3) // 6
89-
>
90-
> return a + b
91-
> },
92-
> })
93-
> ```
82+
> 💁 *note — each side can call the other*
83+
> ```ts
84+
> await Comrade.worker<MySchematic>((shell, rig) => ({
85+
> async add(a, b) {
86+
>
87+
> // we can call the host functions
88+
> await shell.host.mul(2, 3) // 6
89+
>
90+
> return a + b
91+
> },
92+
> })
93+
> ```
9494
9595
### Do the work
9696
here's two ways to talk to the worker

0 commit comments

Comments
 (0)