How to make an rxjs marble sync grouping only take up one frame

纵饮孤独 提交于 2019-12-19 10:05:15

问题


According to 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

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?


回答1:


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.



来源:https://stackoverflow.com/questions/46839094/how-to-make-an-rxjs-marble-sync-grouping-only-take-up-one-frame

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!