Skip to content

Commit e1977b4

Browse files
authored
Update README.md
updated room DataRepository
1 parent 4be46ac commit e1977b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,6 +1170,10 @@ public class DataRepository {
11701170
mIoExecutor = executor;
11711171
mDao = dao;
11721172
}
1173+
1174+
public void insert(Student student) {
1175+
mIoExecutor.submit(() -> mDao.insert(student));
1176+
}
11731177
}
11741178
```
11751179

0 commit comments

Comments
 (0)