Randal answers a late night question about how to get a callback from Stream.periodic at the start of the stream, and solves it, and solves it, and solves it, and solves it some more. Examples shown of “async*” and “yield*” and concatenating streams and managing generic types and extensions on core classes. [NOTE: not for beginners!] Thanks to Simon Lightfoot (@devAngelsLondon) for code review and suggesting a few things.
Support Randal on Patreon via https://www.patreon.com/randalschwartz
Or buy Randal a Coffee via https://www.buymeacoffee.com/randalschwartz
5 Comments