Async void functions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Async void functions

I'm working on making a pos system and I'm using a lot of .db files. I have my program setup so when the user adds or deletes information from the table, the void function(ex public void refreshingitems{}) will call and repopulate the screen. When these files get very big over long time use, I would like to call this function asynchronously but I'm not having luck. Any help would be great!

28th Jun 2017, 11:14 AM
Martin Nowak
Martin Nowak - avatar
1 Answer
0
I do not recommend the use of async void functions, you can read up on the web why. Instead what you should try is an async Task
28th Jun 2017, 4:59 PM
Kevin Leirich
Kevin Leirich - avatar