@rob_rich
Yoda

Async Python,
Good it is


by Rob Richardson

  @rob_rich

https://robrich.org/

About Me

Rob Richardson

Rob Richardson is a software craftsman building web properties in ASP.NET and Node, React and Vue. He's a frequent speaker at conferences, user groups, and community events, and a diligent teacher and student of high quality software development. You can find this and other talks on https://robrich.org/presentations and follow him on twitter at @rob_rich.

Asynchronous

Asynchronous

relating to or being a computer operation that can occur independently, without waiting for another event.

source: dictionary.com/browse/asynchronous

Why Async

Client-side:

Do things in parallel

MDI source: http://benhoff.net/qt-interface-design.html

Server-side:

Yield while I'm waiting

shared hosting source: https://itxdesign.com/vps-vs-shared-hosting/

Race Conditions

Race Conditions source: https://hacks.mozilla.org/2017/06/avoiding-race-conditions-in-sharedarraybuffers-with-atomics/

Popen

Threads

Asynchrony is hard

Async.io

Async.io

Think synchronous

Run asynchronous

Async.io

async & await keywords

Clearly stolen inspired by C# and JavaScript

Identical syntax to C# and JavaScript

Compiler builds a resumable state machine

See also https://en.wikipedia.org/wiki/Async/await

Async.io

Sample Use-cases

Interop with Existing Code

Advanced techniques

Async.io

Think synchronously. Run asynchronously.