@JugaNet happens for me as well which is a really big problem as I'm calling an API :/ The Timeline seems to ignore the policy, perhaps i'm missing something? Here's my code at least, is this happening for anyone else?func timeline(with context: Context, completion: @escaping (Timeline<ChannelEntry>) -> ()) {
let currentDate = Date()
let refreshDate = Calendar.current.date(byAdding: .minute, value: 5, to: currentDate)!
guard let channels = try? JSONDecoder().decode([Channel].self, from: channelsData) else { return }
update_channel(channel, token) { updatedChannel in
let entry = ChannelEntry(date: currentDate, channel: channels[0])
let timeline = Timeline(entries: [entry], policy: .after(refreshDate))
completion(timeline)
}
}