Draw the node in a loop until an event happens.
This is useful for testing. A chain of tree actions can be finished off with a call to this function to ensure it will finish after a frame or few.
Publisher to subscribe to. If the publisher emits an event, drawing will stop and this function will return.
Node to draw in loop.
Maximum number of frames that may be drawn. Errors if reached.
Number of frames that were drawn as a consequence.
See Implementation
Draw the node in a loop until an event happens.
This is useful for testing. A chain of tree actions can be finished off with a call to this function to ensure it will finish after a frame or few.