<asynchronous suspension> in stacktrace output in flutter

Issue

I use the Log package for logging which also outputs the stacktrace.

Between my log message I see <asynchronous suspension> a lot of times. Can someone tell me what it means?

Solution

<asynchronous suspension> is not an indication of a problem, it just indicates that code execution is not synchronous code executed line-by-line, but instead a callback from a completed Future started at some position in the callstack

Answered By – Abiud Orina

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published