[英]Flatmap concurrency limit (like bacon.js)?
I'm looking at the RxJS docs for something like bacon's flatMapWithConcurrencyLimit
, but don't see anything.我在 RxJS 文档中查找类似 bacon 的
flatMapWithConcurrencyLimit
的内容,但没有看到任何内容。 Any idea if it's available in Rx or not?知道它在 Rx 中是否可用吗?
In Rx.NET there's a Merge operator that accepts a maximum concurrency parameter. 在Rx.NET中,有一个Merge运算符,它接受最大并发参数。 Essentially, its semantics are the same as
SelectMany
(aka, FlatMap ) with a concurrency limit. 本质上,其语义与并发限制的
SelectMany
(又名FlatMap )相同。
It seems that Rx.JS defines this overload as well: merge . 似乎Rx.JS也定义了此重载: merge 。
a simpler option without pulling an entire library of streams/observables: https://www.npmjs.com/package/queue一个更简单的选项,无需拉动整个流/可观察库: https://www.npmjs.com/package/queue
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.