Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
2 votes
2 answers
241 views

For example I have the following code (see for example at https://pl.kotl.in/-1hmKnK8i): val a = suspend {b: String -> {0}} On this code I then get the following error: Argument type mismatch: ...
0 votes
0 answers
45 views

I have a question about why my onEach intermediate operator suspends for so long? I have a web socket that emits a flow of events. localJob = coroutineScope.async(Dispatchers.IO + ...
0 votes
1 answer
60 views

I'm using Kotlin coroutines to manage a TLS socket connection. In my minimal version of sendMessageToServerTest, I call connectTest() when the socket is not connected, then log the result. However, ...
0 votes
0 answers
228 views

I am under Windows 11 - 24H2. I wrote an Installshield installation. I'm having problems with the installation, or at least slowness during the installation. When I start the installation from Windows ...
0 votes
0 answers
59 views

I have a food delivery KMM app, and for fetching the restaurants lists, I am not sure if I should use Flow or suspend methods. I use KMM with Firestore, and my biggest concern is having the data up to ...
1 vote
0 answers
150 views

I wrote a Kotlin code and I want to write unit tests for it. But I found that the unit test code I wrote still cannot cover 100% branch coverage. What should I do it? kotlin code: class MyRepository @...
0 votes
0 answers
594 views

I'm trying to add retry logic on my @Service method and it's not working if the method is suspend. (It's Kotlin/Gradle/Spring project). Below is the working method (just for test): @Retryable(...
-1 votes
1 answer
136 views

I want to provide synchronous version of my asynchronous function, but I can't over load, the function have structure like this. Who can explain, why I can't, and is there any other way to overload ...
-2 votes
1 answer
66 views

Short: In my Textfield, why isn't "query" value being cleared once my coroutine is completed? In my Textfield composable, I am testing a "query" value being passed through a ...
1 vote
0 answers
46 views

While diving into Android/Kotlin development, I learned that the suspend keyword transforms the function into a state machine that can be removed from its executing thread, put on hold, and resumed at ...
0 votes
1 answer
211 views

I am reading Kotlin Coroutines Deep Dive by Marcin Moskala, and I have a problem understanding suspendCoroutine function. AFAIK, suspendCoroutine is a low-level API that helps you possess the ...
0 votes
1 answer
199 views

I have a following kotlin class class KotlinClass() { suspend fun executeSuspend(): ResultClass { ..... } } I want to call this suspend function from a Java class. public class JavaClass { ...
1 vote
0 answers
59 views

After calling the suspend func, we are post-processing the response (ex logging,...) through @AfterReturning. Until spring boot version 3.1.12, we were able to receive and process returning value as ...
jun's user avatar
  • 37
0 votes
0 answers
166 views

Does ACPI have a method by which individual devices like PCIe devices etc can let the BIOS/OS know that it does or does not support D3 state (or any low power state for that matter)? Tried searching ...
0 votes
1 answer
191 views

im new to Jetpack and the whole Android development. My issue is that I have a @Composable like this: @Composable private fun RecipeDetailsBody( recipe: SmallResult, pressOnBack: () -> Unit, ...

15 30 50 per page
1
2 3 4 5
...
32

AltStyle によって変換されたページ (->オリジナル) /