Last statement in InsertEmployee is FetchEmployeesAsync. But FetchEmployeesAsync has an await.
According to me, control is transferred back to the caller if the awaited task is not completed. But the execution will still wait at the end of InsertEmployee and not go to its caller. Am I right?
public void InsertEmployee(Employee e)
{
SQLiteAsyncConnection conn = new SQLiteAsyncConnection("Employee.sqlite");
conn.InsertAsync(e);
FetchEmployeesAsync();
}
public async void FetchEmployeesAsync()
{
SQLiteAsyncConnection conn = new SQLiteAsyncConnection("Employee.sqlite");
employees = await conn.Table<Employee>().ToListAsync();
DisplayList();
}