Skip to content
#

async

Here are 264 public repositories matching this topic...

DanCardin
DanCardin commented Sep 29, 2020

Full Error:

thread 'main' panicked at 'can call blocking only when running on the multi-threaded runtime', /rustc/04488afe34512aa4c33566eb16d8c912a3ae04f9/src/libstd/macros.rs:13:23

Minimal app:

use actix_web::{App, HttpServer};
use sqlx::sqlite::SqlitePool;

#[actix_web::main]
async fn main() -> std::io::Result<()> {
    SqlitePool::connect("sqlite://foo").await.unwrap();
Ppjet6
Ppjet6 commented Nov 10, 2019

Steps to reproduce

use futures::channel::mpsc; // 1
use futures::sink::SinkExt;
use std::sync::Arc;

type Sender<T> = mpsc::UnboundedSender<T>; // 2
type Receiver<T> = 
Folaht
Folaht commented May 26, 2020

$cargo run

Finished dev [unoptimized + debuginfo] target(s) in 0.13s
Running /home/folaht/testbot/devlohpmaq/target/debug/testbot
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', src/main.rs:10:15
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

`$strace

thedodd
thedodd commented Aug 17, 2020

Here is a rough idea of what this test should do:

  • It should be quite similar to the other tests which are currently in place.
  • It should isolate a follower node, write a data to the cluster which will cause that node to fall behind into lagging state, but not into snapshotting state.
  • It should then spawn a task which will continue to write data to the cluster.
  • Just after it is spawne

Improve this page

Add a description, image, and links to the async topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the async topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.