You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently following the chapter on setting up the swapchain and noticed some inconsistencies in how the State struct is implemented from how it's referenced in the main event loop.
Namely the update, render, and resize functions are not asynchronous, so you shouldn't need to include block_on() in event loop. Was the intent for them to be asynchronous, or should the event loop code in the tutorial be updated?
The text was updated successfully, but these errors were encountered:
Update, render, and resize were originally async, but I realized that I wasn't using any async methods in them, so they are no longer async. The tutorial event loop code needs to be updated.
I'm currently following the chapter on setting up the swapchain and noticed some inconsistencies in how the State struct is implemented from how it's referenced in the main event loop.
Namely the update, render, and resize functions are not asynchronous, so you shouldn't need to include block_on() in event loop. Was the intent for them to be asynchronous, or should the event loop code in the tutorial be updated?
The text was updated successfully, but these errors were encountered: