My coroutine is only firing once for the first rendered red cube. The other ones in my beat map get rendered but do not move to the desired position o ...
My coroutine is only firing once for the first rendered red cube. The other ones in my beat map get rendered but do not move to the desired position o ...
I have a class Program which is a list of Nodes that contain a method IEnumerator Invoke() and the Program class iterates through each Node invoking i ...
I have a scraper that requires the use of a websocket server (can't go into too much detail on why because of company policy) that I'm trying to turn ...
I have something of the following where I'm trying to test a class launches a coroutine and that coroutine does something properly in the thread. Howe ...
Is this code thread safe? Do I need a synchronized block or something like that? source1 and source2 endless Kotlin Flow ...
I'm researching concurrency topic in Kotlin, and can't figure out why do we still need a Threads, if Coroutines are such a good tool to handle concurr ...
Current versions of Python (Dec 2022) still allow using @coroutine decorator and a generation can be as: However, new Python versions 3.8+ will dep ...
I am using asyncio.gather, and trying to retry when there is exception. But it fails to retry with error like below. How should I fix it to just retry ...
I'm trying to understand a passage in Hands-On Design Patterns with Kotlin, Chapter 8, Threads and Coroutines. Why is it that when we rewrite the fun ...
I am using Room and I need to return id to Fragment which is returned when insert(). However, But I couldn't return the value from viewModelScope. I ...
I'm trying to make a class that has a Coroutine run every 2 seconds. If it works, it should print to console "Ran" every 2 seconds. However, this curr ...
I'm currently learning Kotlin flow operators on Android and want to make a network request or a DB operation, followed by parallel requests and wait u ...
I am trying to cycle through a list of dialogue to update a text component. The var i is only supposed to increases when the player presses z but eve ...
While trying to save an image I am getting the error message 'Unresolved reference:runOnUiThread' and also on the context terms inside the toast messa ...
I'm trying to populate my db with some data and to do so I'm making migrations in which I need to run async uploader that fetch files, parse it to SQL ...
Due to one use case, One of my long-running functions executes multiple instructions. But I have to give a maximum time for its execution. If the func ...
I have a Flow which downloads a file. The flow emits the download progress. I want to show the progress in the phone notification center, but only upd ...
I want to mix up the co_yielding string literals and std::strings However, I'm wondering about the lifetime of the std::string? Maybe it's safe if ...
at a django project, i have a lot of code that depends on thread_locals: middlewares using correlation ids, other logic depending on these middlewares ...
Im using coroutine to make a little break that's reloading the bullet. I don’t know why this doesn’t work, which is to say, there is no time waiting. ...