Skip to main content
-3 votes
1 answer
19 views

How to use Python Lambda for batch creation of AWS Secrets?

I'm working on a Backup & Restore test for AWS Secrets, where I need to create around 1000 secrets from the backup JSON file. I've written a Python Lambda function, but it’s only partially ...
Ravichandran's user avatar
0 votes
0 answers
33 views

Swift 6 @Sendable warning gone?

For many months, the following code has resulted in Xcode warning me that (when I upgrade to Swift 6) using @Sendable in this way will be an error: class Tester { @Sendable func go() -> ...
Sune Riedel's user avatar
0 votes
1 answer
21 views

Actor conformance to protocol with an async func requirement

I have a protocol with an sync function requirement class NonSendable {} protocol P1 { func doSomething(_ nonSendable: NonSendable) async } When I conform to this protocol using an actor, while ...
user2037296's user avatar
0 votes
1 answer
46 views

I found a strange phenomenon in my SPSC with lock-free

I tried to implement a SPSC with lock free tech And got a quirky Segmentation fault. the code following: #include <iostream> #include <thread> #include <vector> #include <atomic&...
Michael Fang's user avatar
0 votes
1 answer
37 views

How to express ownership release in Swift 6 for pipeline of process

I have a heavily multi-threaded app that runs perfectly in Swift 5. I want to switch to Swift 6, and I got very few errors, but there is still this one I get and can't get rid of. The code is ...
AirXygène's user avatar
  • 2,809
0 votes
0 answers
27 views

Efficiently handling 10,000 HTTP requests in Python: AsyncIO, threading, or something else? [closed]

I’m working on a Python script that needs to update 10,000 records by making individual HTTP requests to a backend API. Each record has to be updated separately, and unfortunately, I don’t have the ...
Ilya 's user avatar
0 votes
1 answer
44 views

How can I test an Interactor method with async tasks in Swift in XCTest?

I am working on an app in Swift using the VIP (Clean Swift) architecture. I have an interactor that has a method triggered by the ViewController's viewDidLoad (also called viewDidLoad for convenience),...
Bjorn B.'s user avatar
  • 633
0 votes
1 answer
9 views

Optimizing retry intervals for fetching transaction status from a payment gateway

I have a system where transactions are initially marked as "Pending" in a relational database, if a payment transaction is not immediately successful by payment gateway, I need to fetch the ...
Atul Dewangan's user avatar
0 votes
1 answer
23 views

How to use AWS s3 conditional write in my Jenkins job

I have a Jenkins multibranch pipeline that stores status of branches in a shared S3 groovy object. Groovy file looks something like this : [["name":"def-123","current_status&...
Akash tiwari's user avatar
0 votes
2 answers
58 views

Is it ok to use .userInitiated and .userInteractive for parsing large response?

In my app, I need to parse a response which is directly going to be used to render a part of the screen. The response is huge as it contains other stuff too. Since, i don't want to do this parsing on ...
Vishal's user avatar
  • 153
0 votes
0 answers
56 views

Tomcat catalina.policy file provides security policies to JVM in JDK 21 where Security Manager is deprecated

I have the following JAVA 21 code running within a Tomcat 9 Server where a method is invoked using a CompletableFuture: CompletableFuture.supplyAsync(this::makeHttpCall); The method makeHttpCall ...
Avin's user avatar
  • 59
0 votes
2 answers
79 views

Does the synchronized getter method see the fully or partially initialized object? [duplicate]

Suppose I have the next class: class Point { int x, y, z; public Point(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } public **synchronized*...
Sincerely's user avatar
0 votes
1 answer
100 views

await for View button click in a model task

In my Swift app I have a popover that requests a yes/no decision from the user, like this: var yesNoRequester: some View { VStack { Text("Do you like it"?) HStack { Button(...
Chris's user avatar
  • 1,339
1 vote
0 answers
65 views

Parent process thread gets stuck [closed]

I have implemented C++ code (for Android) that uses multithreading. There is a function that decodes a string, utilizing std::mutex and std::lock_guard to protect a shared resource (std::unordered_map)...
Ghost's user avatar
  • 106
2 votes
2 answers
38 views

Use of std::future vs. std::thread in grep clone

I wrote a grep clone recently. It does a recursive search of a string query through all files of a specified directory. The core of program is the function shown below. /** Do recursive search of ...
Arvind's user avatar
  • 141

15 30 50 per page
1
2 3 4 5
1542