Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coroutines - Just a clarification #11

Open
khadija-km1704338 opened this issue Oct 15, 2021 · 1 comment
Open

Coroutines - Just a clarification #11

khadija-km1704338 opened this issue Oct 15, 2021 · 1 comment

Comments

@khadija-km1704338
Copy link

Are "Background Thread" considered asynchronous? or they are synchronous? Can you please clarify a bit?
Thank you!

@erradi
Copy link
Collaborator

erradi commented Oct 21, 2021

Background Thread is a thread to execute tasks and it can be used to avoid blocking the main thread.
Synchronous function is blocking function -> when called the caller must block and wait to get the result.
Asynchronous function in NON-blocking function -> Caller does not have to wait after calling the function
Asynchronous function can be executed in a background thread when it completes execution it can call back the caller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants