# recipes/sync

A shared task board, over four different channels, with the same code on top of each.

The job: two people work one board at the same time. Both ends run the same program: there is no end that decides, and the only thing either of them can do about a change it will not take is refuse it and say why. They both add tasks at once, they both rename the board at once, and one of them yields. Then three of them in a chain, and finally a board that is both shared over a link and kept in a store, where a change made by the other person is what the store writes down.

```sh
node recipes/sync/main.ts
```

## Files

- [`main.ts`](/docs/recipes/sync/files/main.ts)
- [`worker.ts`](/docs/recipes/sync/files/worker.ts)
