Is there a way to remove observers after all new data is added?

26 Views Asked by At

Right now I am removing observer with DispatchQueue.main.asyncAfter(deadline: .now() + 2) {}. It should never take more that 2 seconds to load the data; this is swift not python. However, it is still a very unelegant solution. Also, ObserveSingleEvent is not feasible to use here (query cache etc)

0

There are 0 best solutions below