xunit, Someone asked about supporting async data sources (for example, a data method which returns Task<IEnumerable<object[]>> because it needs access to async infrastructure).
While this isn't directly supported in v2 (it is in v3), we were able to put together a sample that shows how it can be done in the existing v2 architecture. If you want to do this it would only involve lifting two classes from the sample.
Code: https://github.com/xunit/samples.xunit/tree/main/AsyncDataExample