Have you ever heard that JavaScript is a single thread language? Do you know what is async in JavaScript? Do you know when you need to control the concurrency situation in your code? This talk will give you a guide on how to make an open-source task queue library, and how to use TypeScript to make a @synchronized decorator often seen in other languages, like Java.
Outline:
- Introduction what is async and concurrency in JavaScript - 4 min
- Introduce why do we need a task queue library - 4 min
- Go through the code and its example - 17 min
- use @synchronized, @concurrent on method
- use async function, promising-returning function, syn function into queue
- go through the code
- Q & A - 5 min
About Grimmer
A programmer/manager and enthusiastic to make something good for people. Love physics, programming, psychology, and reading.