Created
May 23, 2020 09:52
-
-
Save deepanshu42/563a0b07ee1ad7276a6a4cd277bf7568 to your computer and use it in GitHub Desktop.
Room generated code for Kotlin Coroutines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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