Hexa
03/06/2019, 1:26 PMkarelpeeters
03/06/2019, 1:27 PMkarelpeeters
03/06/2019, 1:27 PMMarc Knaup
03/06/2019, 1:29 PMstreetsofboston
03/06/2019, 1:30 PMinline
function is to support suspend
functions better.
If your function or its lambda paramter is not inline
, the body of the lambda on the call-site is not ’suspend’able. This means, you can’t call suspend
functions in the lambda.
If you function and its lambda parameter are inline
, the lambda provided by the calling code (on the call-site) is still suspendable, ie it can call suspend
functions.