2017 m. rugsėjo 9 d., šeštadienis

python Async style of concurrent programming

Async - A style of concurrent programming in which tasks release the CPU during waiting period, so that other tasks can use it.

Analogy: Synchronous Chess Exhibition
Guy who plays many opponents is CPU.
When opponents think CPU is released, to go to next table.


Examples:
https://gist.github.com/miguelgrinberg/f15bc03471f610cfebeba62438435508

Resources:
https://www.youtube.com/watch?v=iG6fr81xHKA -  Miguel Grinberg Asynchronous Python for the Complete Beginner