Ben
02/21/2019, 2:21 PMSlackbot
02/21/2019, 3:51 PMБежан Александр
02/21/2019, 7:31 PMthiagoretondar
02/22/2019, 8:20 PMCharlie
02/22/2019, 9:53 PMrrva
02/28/2019, 4:19 PMArtem Bakuta
03/04/2019, 8:50 PMRick Prata
03/10/2019, 4:55 AMmbonnin
03/18/2019, 11:47 AMdavidups
03/19/2019, 2:42 PMColton Hurst
03/19/2019, 7:04 PMasad.awadia
03/20/2019, 3:03 AMDennis Schröder
03/21/2019, 9:15 PMmp
03/21/2019, 9:21 PMandrea.santurbano
03/26/2019, 12:44 PMFuture
implementation (https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/clients/producer/internals/FutureRecordMetadata.java) as Deferred
. Could this be a solution?
fun <T> Future<T>.asDeferred(dispatcher: CoroutineDispatcher = Dispatchers.Default): Deferred<T> {
return GlobalScope.async(dispatcher) {
get()
}
}
Slackbot
03/26/2019, 4:11 PMVelastroll
04/01/2019, 12:31 PMthiagoretondar
04/05/2019, 1:30 PMbbaldino
04/08/2019, 7:53 PMStephan Schroeder
04/09/2019, 2:50 PMgradle clean build
still doesn't create a fat jar (but at least the main-class is set). Here is the Stackoverflow ticket: https://stackoverflow.com/questions/55575264/creating-a-fat-jar-in-gradle-with-kotlindslNezteb
04/15/2019, 7:26 PMAdi Polak
04/17/2019, 12:57 PMthiagoretondar
04/20/2019, 7:26 PMentity
called Alert
and for CRUD operations I have a DTO to create, so I’m naming AlertCreationDTO
but to update I can’t use AlertCreationDTO
because some fields can’t be updated. So how you organize/name those DTOs?Nezteb
04/24/2019, 3:46 PMswagger-core
has a swagger-models
module that includes all the various bits of a Swagger file as code.
Microsoft has https://github.com/Microsoft/OpenAPI.NET for C#, with documentation on how to write a swagger doc with code instead of json/yaml by hand.
Is anyone aware of how to do that with swagger-models
or a library similar to it?Stefan Peterson
04/24/2019, 11:52 PMEduardo Pinto
04/25/2019, 9:45 AM/**
* Returns `true` if all elements match the given [predicate].
*
* @sample samples.collections.Collections.Aggregates.all
*/
public inline fun <T> Iterable<T>.all(predicate: (T) -> Boolean): Boolean {
if (this is Collection && isEmpty()) return true
for (element in this) if (!predicate(element)) return false
return true
}
Does this condition: if (this is Collection && isEmpty()) return true
makes sense? Should return true for applying a predicate to an empty collection?
Example:
val s = emptyList<String>()
if (s.all { it.isNotEmpty() }) {
// should the code enter here?
}
napperley
04/26/2019, 2:55 AMAndreas Du Rietz
05/10/2019, 6:18 AMAndreas Du Rietz
05/10/2019, 7:40 AMpaulex
05/16/2019, 11:04 PMpaulex
05/16/2019, 11:04 PMSergey Bondari
05/17/2019, 2:00 AMhallvard
05/17/2019, 1:12 PM