setTileRunner
Sets the TileRunner that every decode from now on hands its independent jobs to: the tiles of a HEIC or AVIF grid, in decode, decode16, decodeScaled and the other decodes of a grid image (#152), and the tiles that encodeHeic and encodeHeic16 code (#174). The default, TileRunner.Serial, runs them in order on the calling thread, which is all JS and Wasm can do. Set it once, at startup, before any decode: a decode reads the runner each time it hands out a set of jobs, so a change while it runs can apply to its later rows of tiles.
A decode's result does not depend on the runner, and neither does its error: of several tiles that fail, the first in tile order gives the exception. With a runner that uses several threads, a decode's cancellation check runs on them, possibly at the same time. A grid whose tiles are derived images, or that names one tile more than once, decodes in order whatever the runner.