public async Task useTaskBind_NullDisposable_NoExceptionThrown() { IDisposable d = null; var m = d.AsTask(); Func <IDisposable, Task <Unit> > f = _ => unit.AsTask(); await use(m, f); }