Updated kotlin methods
This commit is contained in:
parent
b0cf03b2d9
commit
493426a09a
|
@ -38,7 +38,7 @@ internal class SuspendingPool<T> constructor(
|
||||||
for (x in 0 until size) {
|
for (x in 0 until size) {
|
||||||
val e = newInstance()
|
val e = newInstance()
|
||||||
poolObject.onReturn(e)
|
poolObject.onReturn(e)
|
||||||
channel.offer(e)
|
channel.trySend(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue