Created
June 21, 2019 21:16
-
-
Save JoJoDeveloping/0c29d4041f0a89ab8814af0a8c18043f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://discordapp.com/channels/313125603924639766/454376090362970122/588078118401474706 | |
also | |
cpw I feel you're somewhat misguided about the new async reloader.. it has an async and a sync phase where stuff is loaded in the async phase and then put into the game in the sync phase. the sync phase is sequential and you can block for things in it. | |
The IStage isnt a stage the Istagebuilder is a callback. You put it into the compfutute chain at the end of the async workload and then that markes the async part as complete, and returns a compfuture which is itself complete once all the others are done. | |
Based on it the sync part is predicated, where the async conpute results are applied. This resync 'wait on me' compfuture is built in a way that it runs the things in the order they're supplied. | |
the one method in IFutureReloadListenee returns an CF that is done when async&sync are done, the IStage is a callback so it can do stuff when async is done. | |
I named a lot of things already so pull in latest mappings. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment