Files
flipper/desktop/plugins/public/ui-debugger
Luke De Feo 862592e03d Account for race conditions with stream intercetor
Summary:
Given that stream interceptor is async the folling race conditino could occur.

Frame at time t=0 comes in, we yeild to the event loop while fetching metadata, fetch takes 5 ticks

Frame at time t=1 comes in, we yeild to the event loop but fetch takes 1 tick

At time t=2 the second frame is augmented  and display

At time t=5 the first fetch returns and we display and older frame

This is a simple check to avoid this.

Reviewed By: aigoncharov

Differential Revision: D45314013

fbshipit-source-id: 054e7e6beb52dfbfd94bc9f8ee3d0a758a669f66
2023-04-27 07:28:41 -07:00
..
2023-04-27 07:28:41 -07:00
2023-03-17 10:23:54 -07:00
2023-02-17 02:45:05 -08:00
2022-11-21 05:30:18 -08:00
2023-03-22 11:53:54 -07:00