tateisu
01/24/2019, 6:42 AMAnimesh
01/24/2019, 10:21 AMelect
01/24/2019, 10:25 AMRoberto Messina
09/13/2019, 12:01 AMRoberto Messina
09/13/2019, 12:06 AMuser
09/13/2019, 10:00 AMuser
09/13/2019, 12:00 PMSebastian Keller
09/13/2019, 2:53 PMIncorrectDereferenceException
? I want to use the iOS CMAltimeter class, but it's callback gets called from a non-main-thread when altimeter?.stopRelativeAltitudeUpdates()
is called. I tried a surrounding try
and catch
, but no luck. I can not freeze the callback, because that would freeze update()
too. I really don't know what else to do right now.
altimeter = CMAltimeter()
altimeter?.startRelativeAltitudeUpdatesToQueue(NSOperationQueue.mainQueue) { data: CMAltitudeData?, error: NSError? ->
update(data.pressure.doubleValue)
}
Can the relaxed mode help? If so, how to enable it?
Posted in #kotlin-nativeSeri
09/13/2019, 6:48 PMtipsy
09/14/2019, 11:51 AMheader
is no longer smart cast it needs double bang (!!
) to compileoctylFractal
09/16/2019, 8:13 AMNikola Milovic
09/18/2019, 3:04 PMcarlos cdmp
09/18/2019, 3:07 PMinterface Middleware<S, A, A2> where S : State, A : Action, A2 : Action {
fun reduceAction(state: S, action: A): A2
}
And this map: val middleWareMap: Map<KClass<*>, Middleware<AppState, *, *>>
carlos cdmp
09/18/2019, 3:08 PMjimn
09/19/2019, 6:50 AMuser
09/20/2019, 6:58 AMBen Madore
09/20/2019, 2:43 PMfoo?. { {//block to execute if null}, {//block to execute if not null}}
Ben Madore
09/20/2019, 2:44 PMthis
… basically want to be able to provide diff messages to log when something is null or not
inline fun <T> T?.someName(nullFunc: () -> Unit, nonNullFunc: () -> Unit): T? {
return this?.also {
nonNullFunc()
} ?: null.also {
nullFunc()
}
}
Max
09/20/2019, 8:29 PMMax
09/20/2019, 8:30 PMapply(from = "CoreDependency.gradle.kts")
but I am not able to define a single dependency in it because not even the ‘implementation’ keyword is being recognizednfrankel
09/20/2019, 10:05 PMnfrankel
09/20/2019, 10:06 PMursus
09/23/2019, 9:06 AMseales State {
Disabled
sealed Enabled {
Foo
Bar
}
}
with callsite of for example State.Enabled.Foo
or flat
State
DisabledState : State
EnabledState : State
FooState : EnabledState
BarState : EnabledState
xenoterracide
09/25/2019, 5:44 PMpublic WebTestClient.BodyContentSpec isEqualTo(Object expectedValue) {
this.pathHelper.assertValue(this.content, expectedValue);
return this.bodySpec;
}
xenoterracide
09/25/2019, 5:45 PMAny
which won’t let me pass null
zachtib
09/25/2019, 8:46 PMfun Boolean.toInt() = if (this) 1 else 0
in a file in the meantimeSam
09/26/2019, 7:38 AMBernhard
09/26/2019, 3:40 PMBernhard
09/26/2019, 3:43 PM