44#include " ClassWithMarshalingRoutines.g.cpp"
55#include " WrappedClass.g.cpp"
66#include " EventOperations.g.cpp"
7+ #include " ClassWithAsync.g.cpp"
78#include " Composable.g.cpp"
89#include " ClassWithFastAbi.g.cpp"
910#include " ClassWithFastAbiDerived.g.cpp"
@@ -161,7 +162,7 @@ namespace winrt::BenchmarkComponent::implementation
161162 {
162163 return createList ();
163164 }
164-
165+
165166 Windows::Foundation::IInspectable ClassWithMarshalingRoutines::NewTypeErasedKeyValuePairObject ()
166167 {
167168 return createKeyValuePairObject ();
@@ -273,7 +274,7 @@ namespace winrt::BenchmarkComponent::implementation
273274 }
274275 Windows::Foundation::IReference<BenchmarkComponent::BlittableStruct> ClassWithMarshalingRoutines::NullableBlittableStruct ()
275276 {
276- return IReference<BenchmarkComponent::BlittableStruct>(BenchmarkComponent::BlittableStruct{2 });
277+ return IReference<BenchmarkComponent::BlittableStruct>(BenchmarkComponent::BlittableStruct{ 2 });
277278 }
278279 void ClassWithMarshalingRoutines::NullableBlittableStruct (Windows::Foundation::IReference<BenchmarkComponent::BlittableStruct> const & value)
279280 {
@@ -385,16 +386,16 @@ namespace winrt::BenchmarkComponent::implementation
385386 void EventOperations::AddIntEvent ()
386387 {
387388 intEventToken = events.IntPropertyChanged ([this ](IInspectable const & sender, int32_t value)
388- {
389- intVal = value;
390- });
389+ {
390+ intVal = value;
391+ });
391392 }
392393 void EventOperations::AddDoubleEvent ()
393394 {
394395 doubleEventToken = events.DoublePropertyChanged ([this ](IInspectable const & sender, double_t value)
395- {
396- doubleVal = value;
397- });
396+ {
397+ doubleVal = value;
398+ });
398399 }
399400 void EventOperations::RemoveIntEvent ()
400401 {
@@ -412,6 +413,24 @@ namespace winrt::BenchmarkComponent::implementation
412413 {
413414 events.RaiseDoubleChanged ();
414415 }
416+ IAsyncAction ClassWithAsync::Complete ()
417+ {
418+ co_return ;
419+ }
420+ IAsyncAction ClassWithAsync::YieldComplete ()
421+ {
422+ co_await resume_background ();
423+ co_return ;
424+ }
425+ IAsyncOperation<int32_t > ClassWithAsync::Return (int32_t value)
426+ {
427+ co_return value;
428+ }
429+ IAsyncOperation<int32_t > ClassWithAsync::YieldReturn (int32_t value)
430+ {
431+ co_await resume_background ();
432+ co_return value;
433+ }
415434 int32_t ClassWithFastAbi::DefaultIntProperty ()
416435 {
417436 return 1 ;
0 commit comments