Become a member
Sign in
David Thompson
David Thompson

David Thompson

11 Following
9 Followers
  • Profile

  • Claps

  • Highlights

Highlighted by David Thompson

See more

From Understanding Async, Avoiding Deadlocks in C# by Eke Péter

It’s okay to provide both sync and async version of API, but never call one from the other. (this is one of the rare cases when code duplication is acceptable)

From Understanding Async, Avoiding Deadlocks in C# by Eke Péter

…tion twice, for both versions. Don’t even think about calling them from each other for code reuse. You have 2 options, either make your function sync, and use sync APIs to implement it, or make your function async and use async APIs to implement it. In case you need both you can and should implement both separately.

From Understanding Async, Avoiding Deadlocks in C# by Eke Péter

…pport both sync and async interface, then you must implement the function twice, for both versions. Don’t even think about calling them from each other for code reuse. You have 2 options, either make your function sync, and use sync APIs to implement it, or make your…

Claps from David Thompson

See more

An Overview of JavaScript Testing in 2018

Vitali Zaidman

The Logic of Risk Taking

Nassim Nicholas Taleb