I am learning TCA and having an issue with running timer befor I did it like this
EffectTask.timer(id: TimerID.refresh, every: 5, on: DispatchQueue.main)
but now it is depreciate can someone help thanks in advance
I am learning TCA and having an issue with running timer befor I did it like this
EffectTask.timer(id: TimerID.refresh, every: 5, on: DispatchQueue.main)
but now it is depreciate can someone help thanks in advance
You need to use the clock dependency, your code will look something like this: