close
Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
162 views

I am trying to store a function for<'a> FnOnce(&'a Data) -> (impl Future + 'a), but unfortunately we cannot express this as impl Future is not allowed in this position. I tried to ...
msrd0's user avatar
  • 8,552
4 votes
0 answers
139 views

I'm on Scala 3.8.2 / JDK 21 and trying to combine boundary/break with Future to bail out of a parallel operation as soon as the first failure hits. Here's a stripped-down version. Synchronous boundary/...
user avatar
0 votes
1 answer
135 views

I have this app that before the main page is constructed, I have a FutureBuilder that does some setup on the SharedPreferences that must happen before anything else. I think I did all that correctly, ...
NeoFahrenheit's user avatar
-1 votes
1 answer
140 views

I want to use this app. As it is mentioned in the README.md it needs the future module of python. I have debian sid and python3-future is removed from the repos of apt. When I install it via its setup....
Reza Hosseinzadeh's user avatar
1 vote
1 answer
78 views

With Vertx futures, we have CompositeFuture fRes1 = Future.all(f1, f2, f3); CompositeFuture fRes2 = Future.join(f1, f2, f3); Future.join will wait for all three underlying futures to fail to then ...
cmhteixeira's user avatar
0 votes
1 answer
168 views

I’m building a small web server in Rust and I want the server’s add_route method to accept both synchronous and asynchronous handlers ergonomically. Goal: allow end-users to write code as simple as: //...
Fahed's user avatar
  • 215
-1 votes
1 answer
61 views

I am using expandable_page_view as in the following code setup. Initially when I coded the code in First attempt in the initState method, now commented, the code ran as expected in the real Android ...
rusty's user avatar
  • 1,525
0 votes
1 answer
122 views

First, Please correct me anything I inferred about asynchrounous programming in dart, and even what I summarized from the docs, And please check if my idea about when Future objects are correct. I ...
B1LLP4RK's user avatar
0 votes
1 answer
118 views

I am using a library (Macroquad) that has an async function with following signature: async fn load_file(path: &str) -> Vec<u8> This loads the file and returns the raw bytes. Is there a ...
Ved Prajapati's user avatar
3 votes
1 answer
99 views

Reproducible code snippet: #[tokio::main] async fn main() { let (tx, rx) = oneshot::channel(); let a = tokio::spawn(async move { tokio::select! { _ = rx => {} ...
Solaric's user avatar
  • 41
0 votes
1 answer
98 views

I like to call a command line utility from R and parallelise the tool by calling several copies of it in different folders. Each call can have quite different runtimes, so I'd like to do this in an ...
user3460194's user avatar
1 vote
1 answer
130 views

I am most likely not doing the right thing below, why do I get different answers? library(furrr) fu=function(x){ options(warn=2) b=x tryCatch({b=as.numeric('b')},error=function(e){}) options(...
S.T.'s user avatar
  • 23
0 votes
0 answers
85 views

I'm learning Scala futures and I got stuck (or deadlocked) at this piece of code: package exercises.ch4 import scala.concurrent.ExecutionContext.Implicits.global import scala.concurrent.duration....
maiooc's user avatar
  • 1
2 votes
2 answers
256 views

Within a Shiny app, a task that is triggered by a button is taking quite a long time to complete (synchronous sequential code). That's why I want to split this task over several (logical) cores of my ...
Olivier7121's user avatar
0 votes
1 answer
62 views

I'm new to Dart and I'm trying to get data from an API using the http package. Here's my code: import 'dart:convert'; import 'package:http/http.dart' as http; void fetchData() { try { final ...
Amaal.Psau's user avatar

15 30 50 per page
1
2 3 4 5
261