Ofir Bar
01/02/2020, 9:39 PMBen Abramovitch
01/02/2020, 9:43 PMVsevolod Kaganovych
01/02/2020, 9:44 PMreturn
, it will return from the createUser
function.Anastasia Finogenova
01/02/2020, 10:47 PMOfir Bar
01/02/2020, 10:47 PMAnastasia Finogenova
01/02/2020, 10:47 PMOfir Bar
01/02/2020, 10:47 PMStavFX
01/03/2020, 12:41 AMinline
, you have the option to either return from the lambda (what you are trying to do), or, like Vsevolod said, return from f()
.
Since the method you are calling is not inlined, you cannot return f()
from inside the lambda, but you still must declare it properly, so that if addOnCompleteListener
ever becomes an inline
method - your implementation won’t break.Ofir Bar
01/03/2020, 12:03 PM