Can't run example code from the chapter on concurrent programming from RWO

You’re probably using an old version of async, from before Command.async was renamed to Command.async_spec.

Try opam upgrade. You can see the specific versions of the book’s dependencies in its duniverse.