You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue seems to be very similar to this issue:
InternalExpectAsync does not await actionAsync() - causing actionAsync to run as a detached task #5537
/// <summary>/// Async version of <see cref="Intercept{T}"/>/// </summary>protectedTask<T>InterceptAsync<T>(Func<T>func,ActorSystemsystem,TimeSpan?timeout,int?expectedOccurrences,MatchedEventHandlermatchedEventHandler=null){returnInterceptAsync(()=>Task.FromResult(func()),system,timeout,expectedOccurrences,matchedEventHandler);}
Which seems to invoke:
func()
without awaiting it, hence causing func() to run as a detached task.
* repro issue: InterceptAsync seems to run func() as a detached task #5586
* resolved issue: InterceptAsync seems to run func() as a detached task #5586
* added notes: "func might not get awaited"
* Fix API breaking changes
* Remove null default value
Co-authored-by: Gregorius Soedharmo <[email protected]>
This issue seems to be very similar to this issue:
InternalExpectAsync does not await actionAsync() - causing actionAsync to run as a detached task #5537
Repro:
This is my code:
Invokes this code:
Which seems to invoke:
func()
without awaiting it, hence causing func() to run as a detached task.
Originally posted by @brah-mcdude in #5537 (comment)
The text was updated successfully, but these errors were encountered: