danielsaidi / MockingKit

MockingKit is a Swift SDK that lets you easily mock protocols and classes in `Swift`.
MIT License
87 stars 7 forks source link

Async await support #14

Closed ullstrm closed 2 years ago

ullstrm commented 2 years ago

When creating a MockReference to an async function, one gets this error:

Cannot pass function of type '() async throws -> ()' to parameter expecting synchronous function

Screenshot 2022-05-02 at 17 06 31
danielsaidi commented 2 years ago

Great find! I really hope there's a clean way to get this working.

danielsaidi commented 2 years ago

I have merged the PR by @tboogh that adds this 🎉

I will adjust the docs, then release a 1.1 wit these new capabilities.