File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,18 @@ const host = await Comrade.worker<MySchematic>((shell, rig) => ({
79
79
await host .mul (2 , 3 ) // 6
80
80
await host .div (6 , 2 ) // 3
81
81
```
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
+ > ` ` `
94
94
95
95
### Do the work
96
96
here's two ways to talk to the worker
You can’t perform that action at this time.
0 commit comments