tasks and then Task.WaitAll(Tasks.toarray) in the mean time bot doesn cant recieve messages from the sam user until the all awaited tasks are done but if I use for some other method await the bot is recieving inputs from the same user ?
await GetFollowers() in the mean time it keeps seeing new messages from the same user....but when i do tasks to run in the background and task.waitall() in the mean time Update[] updates = await botClient.GetUpdatesAsync(offset) doesnt work at all ....nothing happens
I think you want await Task.WhenAll instead of Task.WaitAll.
Обсуждают сегодня