Skip to content

Instantly share code, notes, and snippets.

@deepanshu42
Created May 23, 2020 09:52
Show Gist options
  • Save deepanshu42/563a0b07ee1ad7276a6a4cd277bf7568 to your computer and use it in GitHub Desktop.
Save deepanshu42/563a0b07ee1ad7276a6a4cd277bf7568 to your computer and use it in GitHub Desktop.
Room generated code for Kotlin Coroutines
@Override
public Object insertUsers(final User[] users, final Continuation<? super Unit> p1) {
return CoroutinesRoom.execute(__db, true, new Callable<Unit>() {
@Override
public Unit call() throws Exception {
__db.beginTransaction();
try {
__insertionAdapterOfUser.insert(users);
__db.setTransactionSuccessful();
return Unit.INSTANCE;
} finally {
__db.endTransaction();
}
}
}, p1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment