如何使rxjs大理石同步分组仅占用一帧 [英] How to make an rxjs marble sync grouping only take up one frame
本文介绍了如何使rxjs大理石同步分组仅占用一帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据 https://github.com/ReactiveX/rxjs/blob/master/doc/writing-marble-tests.md
'--(abc)-|': on frame 20, emit a, b, and c, then on frame 80 complete
那么我该如何表示在第20帧上,发出a,b和c,然后在第40帧上完成.
So how do I represent "on frame 20, emit a, b, and c, then on frame 40 complete.
我如何才能停止同步组本身占用帧?
Ie how can I stop the sync group itself taking up frames?
推荐答案
cartant 在其评论中回答了这个问题.
cartant has answered this question in his comment.
没有办法-即使所有成员都出现在左方括号的框架中,同步组也将始终占用额外的框架.
There's no way to do it - sync groups will always take up extra frames even though all members occur in the frame of the opening bracket.
这篇关于如何使rxjs大理石同步分组仅占用一帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文