protected override async void OnClick() { var success = await QueuedTask.Run(() => FeatureHelper.GetNonDatasetFeatureLayers().GenerateRandomPolygons()); Debug.WriteLine($"Created non-dataset features? {success}"); }