Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

According to https://github.com/ReactiveX/rxjs/blob/master/docs_app/content/guide/testing/marble-testing.md#marble-syntax

'--(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?

like image 991
Giles Bradshaw Avatar asked Oct 16 '25 10:10

Giles Bradshaw


1 Answers

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.

like image 67
Giles Bradshaw Avatar answered Oct 19 '25 13:10

Giles Bradshaw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!