richardszalay/mockhttp

IMockedRequestMatcher should have MatchesAsync

pengweiqhca opened this issue · 2 comments

Current, Matches is a synchronized method, there is a situation where asynchronous method are invoked synchronously.

Hi, is this hypothetical or do you have a repro where blocking on an async call within a test environment (where streams typically originate from in-memory sources) causes a deadlock?

No deadlock, but have a hidden danger.