I have a function in a class that cannot be async,
however in that function i need to run another function that will do a playthrough of a game (basically just run a set interval, every 50 ms) and when that returns, then execute the rest of the function
i dont think that can work with a callback
as i specifically need to wait for the function that does the playthrough to complete as it returns values that the outer function needs.
which would be a perfect usecase for async await, but the function isnt async, and cant be made async without modifying the lib