public static Task <nuint> GetRemainingTileCapacityTaskAsync(this IBandTileManager manager) { var tcs = new TaskCompletionSource <nuint> (); manager.GetRemainingTileCapacityAsync(tcs.AttachCompletionHandler()); return(tcs.Task); }
public static async Task <int> GetRemainingTileCapacityTaskAsync(this IBandTileManager manager) { return((int)await manager.GetRemainingTileCapacityAsync().AsTask()); }