yodgor777
01/12/2019, 2:30 PMyodgor777
01/12/2019, 2:32 PMyodgor777
01/12/2019, 2:33 PMyodgor777
01/12/2019, 2:33 PMyodgor777
01/12/2019, 2:33 PMyodgor777
01/12/2019, 2:35 PMstask
10/13/2020, 6:05 PMHankG
10/13/2020, 6:08 PMHankG
10/13/2020, 6:09 PMHankG
10/13/2020, 6:09 PMlouiscad
10/13/2020, 7:59 PMRishit Dagli
10/14/2020, 6:37 AMuser
10/14/2020, 1:19 PMuser
10/14/2020, 2:01 PMuser
10/14/2020, 3:40 PMuser
10/14/2020, 6:20 PMuser
10/15/2020, 2:00 PMdwursteisen
10/15/2020, 2:57 PM@Deprecated
. So it fail our build. We tried to disable warning for deprecated using -Xjavac-arguments=['-Xlint:-deprecation']
. It doesn’t work. My understating is that this flag disable deprecation warning for Java source code and not `@Deprecated`managed by kotlinc. Regarding KT-24746, my understanding is that, at the moment, it’s not supported to disable this warning. Can you confirm that? Thanks 🙂user
10/15/2020, 3:30 PMuser
10/15/2020, 3:48 PMuser
10/15/2020, 5:00 PM_shtomar
10/15/2020, 9:00 PMetibaldi
10/16/2020, 5:07 AMPeter Ertl
10/16/2020, 8:25 AMPeter Ertl
10/16/2020, 8:46 AM/**
* receive a chunk of elements from channel.
*
* @param size maximum amount of elements to receive
* @return list of elements (empty list indicates the channel is closed)
*/
@ExperimentalCoroutinesApi
suspend fun <E : Any> ReceiveChannel<E>.receiveChunk(size: Int): List<E> =
mutableListOf<E>().apply {
for (i in 0 until size) {
receiveOrNull()?.apply(::add) ?: break
}
}
Peter Ertl
10/16/2020, 8:46 AMthe best thing I came up with is this - maybe this is worth considering adding to kotlin's 'ReceiveChannel' impl since I can imagine the problem is quite common:
user
10/16/2020, 8:49 AMCole K
10/16/2020, 8:39 PMerror: [ComponentProcessor:MiscError] dagger.internal.codegen.ComponentProcessor was unable to process this interface because not all of its dependencies could be resolved. Check for compilation errors or a circular dependency with generated code.
I’m guessing (though not sure) dagger’s annotations are being processed before mineShalaga44
10/17/2020, 2:00 AMTomasz Krakowiak
10/18/2020, 11:08 AM