Broken Yield and Delay (in 1.3.0+)
See original GitHub issueI’ve updated to 1.3.1 using git/packages installation and whole project is broken. Something like:
private async void Awake()
{
await Test(); //or Test().Forget();
}
async UniTask Test()
{
Debug.Log( "1" );
await UniTask.Delay(1);
Debug.Log( "2" );
await UniTask.Yield();
Debug.Log( "3" );
}
Prints only “1”
Tried it in empty project and it’s fine there. Any ideas?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Yield vs Delay ? Can we call yield instead of delay when ...
First it receives data and then it do some delay. I have found yield() funtion is one when called can do backend processing...
Read more >Change log for kotlinx.coroutines
All Kotlin dependencies updated to 1.3 release version. Fixed potential memory leak in HandlerDispatcher.scheduleResumeAfterDelay , thanks @cbeyls. yield ...
Read more >OpenFlow Switch Specification
OpenFlow Switch Specification. Version 1.3.0. Contents. 1 Introduction. 6. 2 Switch Components. 6. 3 Glossary. 7. 4 OpenFlow Ports. 8. 4.1 OpenFlow ports...
Read more >Kotlin 1.3 RC is Here: Migrate Your Coroutines!
It's a good time to migrate libraries using old experimental coroutines now to get them ready by the time 1.3.0 is out. Our...
Read more >Patch 1.3.0 | Vanilla WoW Wiki - Fandom
While protected, taking damage will not cause spellcasting delays, but non-instant ... Crystal Ward, and Crystal Yield to be on appropriate cooldown timers....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same issue and the above solution did not solve my problem. Specifically I created an
Initialization
script with lowest script executing order (so it should run first) with below code:Only the first
print
statement works.Ye, I think Unity needs like a one frame to update its playerloop.