Generator functions support for Comlink
npm i comlink-async-generator
import { transferHandlers } from 'comlink';
import { asyncGeneratorTransferHandler } from 'comlink-async-generator';
transferHandlers.set('asyncGenerator', asyncGeneratorTransferHandler);
MIT. Copyright (c) Kyaw Swar Thwin <myanmarunicorn@gmail.com>