Closed ullstrm closed 2 years ago
When creating a MockReference to an async function, one gets this error:
MockReference
Cannot pass function of type '() async throws -> ()' to parameter expecting synchronous function
Great find! I really hope there's a clean way to get this working.
I have merged the PR by @tboogh that adds this 🎉
I will adjust the docs, then release a 1.1 wit these new capabilities.
When creating a
MockReference
to an async function, one gets this error:Cannot pass function of type '() async throws -> ()' to parameter expecting synchronous function