Skip to content

Commit

Permalink
feat: Deferral.Dispose completes the deferral
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Mar 30, 2022
1 parent 00f5f23 commit b510d0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/Uno.Foundation/Deferral.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public Deferral([In] DeferralCompletedHandler handler)
/// </summary>
public void Complete() => _handler?.Invoke();

public void Close() { }
public void Close() => Complete();

public void Dispose() => Complete();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@ public partial class Deferral : global::System.IDisposable
// Skipping already declared method Windows.Foundation.Deferral.Deferral(Windows.Foundation.DeferralCompletedHandler)
// Forced skipping of method Windows.Foundation.Deferral.Deferral(Windows.Foundation.DeferralCompletedHandler)
// Skipping already declared method Windows.Foundation.Deferral.Complete()
#if __ANDROID__ || __IOS__ || NET461 || __WASM__ || __SKIA__ || __NETSTD_REFERENCE__ || __MACOS__
[global::Uno.NotImplemented("__ANDROID__", "__IOS__", "NET461", "__WASM__", "__SKIA__", "__NETSTD_REFERENCE__", "__MACOS__")]
public void Dispose()
{
global::Windows.Foundation.Metadata.ApiInformation.TryRaiseNotImplemented("Windows.Foundation.Deferral", "void Deferral.Dispose()");
}
#endif
// Skipping already declared method Windows.Foundation.Deferral.Dispose()
// Processing: System.IDisposable
}
}

0 comments on commit b510d0b

Please sign in to comment.