We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBFlow Version: 5.0.0-alpha2
Bug or Feature Request: defer is suspend, is my code fault?
Description: code on my repository:
fun getDefaultPaymentAsync(): Deferred<Payment?> { return (select from Payment::class where (Payment_Table.is_delete.`is`(false)) orderBy OrderBy.fromProperty(Payment_Table.is_default).descending() orderBy OrderBy.fromProperty(Payment_Table.last_modify_time).descending() ).async(database) { d -> querySingle(d) } .defer() }
code how I use it:
runBlocking { PaymentRepository .getDefaultPaymentAsync() .await().let { setPayment(it) } // suspend here, setPayment never be invoke. }
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
My fault, I should use GlobalScope.launch not runBlocking.
No branches or pull requests
DBFlow Version: 5.0.0-alpha2
Bug or Feature Request: defer is suspend, is my code fault?
Description:
code on my repository:
code how I use it:
The text was updated successfully, but these errors were encountered: