Skip to content
Eugene Lazutkin edited this page Aug 20, 2024 · 4 revisions

fun() is an equivalent of gen(). It wraps a list of functions organized as a sequential pipeline.

The differences with gen() are:

  • It returns an asynchronous function instead of an asynchronous generator function.
  • Values produced by generator functions are collected in arrays and passed with many() of defs.

It exists mostly for backwards compatibility with older versions of stream-chain and for possible performance reasons.

Clone this wiki locally