Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Supply.batch: handle no args and $elems == 1
In most cases, the returned supply from the batch method emits arrays of batched elements. There's no reason why the following should happen: $s.batch(elems => 1, seconds => 1000) tap sees arrays $s.batch(elems => 1) tap doesn't see arrays I also think that just batch() should do something sane and also return a supply that produces arrays. This provides us a very consistent interface from the tap-side where we know post-batch we should always be expecting an array of values.
- Loading branch information