如何使 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屋!
查看全文