Skip to content

Instantly share code, notes, and snippets.

@musicq
musicq / main.rs
Created December 8, 2023 04:41 — forked from lu4nm3/main.rs
Tokio Async: Concurrent vs Parallel
use futures::StreamExt;
use std::error::Error;
use tokio;
use tokio::macros::support::Pin;
use tokio::prelude::*;
use tokio::time::{Duration, Instant};
pub fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut multi_threaded_runtime = tokio::runtime::Builder::new()
.threaded_scheduler()
@musicq
musicq / RxJS 5 Operators By Example.md
Created May 22, 2017 04:12 — forked from lyyourc/RxJS 5 Operators By Example.md
「译」RxJS 5 Operators By Example