Advertisement
Guest User

Untitled

a guest
Dec 18th, 2018
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.42 KB | None | 0 0
  1.  
  2.             IntRange(1,566).map {
  3.                 TestData(UUID.randomUUID().toString())
  4.             }.forEach {
  5.                 val doc = colref.document()
  6.                 doc.set(it)
  7.             }
  8.             batch.commit().await()
  9.  
  10.             IntRange(1,10).forEach {
  11.                 println("Firebase collection size : ${docRef.collection("results").get().await().size()}")
  12.                 delay(10)
  13.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement