← Back to context

Comment by tcfhgj

17 hours ago

> If you are ten layers deep in a stack of synchronous functions and suddenly need to make an asynchronous call, the type signature of every individual function in the stack has to change.

well, this isn't really true - at least for Rust:

runtime.block_on(async{});

https://docs.rs/tokio/latest/tokio/runtime/struct.Handle.htm...

In Kotlin, it’s runBlocking {<asynchronous-code>}.

This is a language specific problem, not a language pattern one.