C++ coroutines: Constructible awaitable or function returning awaitable?
Two common patterns for simple awaitable objects.
Breaking news from around the world Get the Bing + MSN extension

Two common patterns for simple awaitable objects.

Starting our walk-around.

IInspectable as or convert one to a boolMuch less weird than C++/CX.

bool, but you can’t always static_cast them to boolBecause C++/CX is weird like that.

There's no way to make anything bad happen, so is anything bad actually happening?

Please use it only for emergencies.

It's a balance between doing more work now in anticipation of saving work later.

Doing the admissions price math.

You can go back home again.

IContextCallback::ContextCallback?Piggybacking on the internal infrastructure.
Old New Thing

Two common patterns for simple awaitable objects.

Starting our walk-around.

IInspectable as or convert one to a boolMuch less weird than C++/CX.

bool, but you can’t always static_cast them to boolBecause C++/CX is weird like that.

There's no way to make anything bad happen, so is anything bad actually happening?

Please use it only for emergencies.

It's a balance between doing more work now in anticipation of saving work later.

Doing the admissions price math.

You can go back home again.

IContextCallback::ContextCallback?Piggybacking on the internal infrastructure.