Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

arsipluthfi/adpro-tutorial10-timer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tutorial Pemrograman Lanjut

Alden Luthfi - 2206028932

1.2. Understanding how it works.

image

The async program will execute the function in the background and will not block the main thread. The main thread will continue to execute the next code without waiting for the async function to finish. The async function will be executed in the background and will be executed in the order it was called. that is why "hey hey" appeared before "Howdy" and "Done". Dropping the spawner means that the program is done

1.3. Multiple Spawn and removing drop

image

Not dropping the spawner will make the program think that it is not done. So it will be stuck in a waiting game and will not terminate. Multiple threads will be executed sequentially. this is similar like any procedural programming. of course, "hey hey" is outside the asycn implementation so will be executed first

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages