Await-Tree Async Rust 可观测性的灵丹妙药 - 赵梓淇@Shanghai ## Await-Tree Async Rust 可观测性的灵丹妙药 赵梓淇 Bugen Zhao RisingWave ## Await-Tree Async Rust 可观测性的灵丹妙药  回顾 Async Rust 的设计与痛点 的设计与痛点 Await-Tree 的设计原理与实现   Await-Tree Await-Tree 的应用与真实案例 ## Await-Tree Async Rust 可观测性的灵丹妙药 1 回顾 Async Rust 的设计与痛点  Await-Tree 的设计原理与实现  ## Async Stacks are Better  ## Structured Concurrency Makes Async Stacks Possible Lewis Baker { unifex::static_thread_pool pool; io_uring_context ctx; unifex::tasktask = async_main({argv + 1, argc - 1}, pool, ctx); unifex 0 码力 | 131 页 | 907.41 KB | 1 年前3
Coroutines in Kotlin## Coroutines in Kotlin Andrey.Breslav@JetBrains.com This talk could have been named... • async/await/yield • fibers Suspendable Computations • [stackless] continuations ## Outline • Motivation/Examples setImage(image)  Continuation await(...) Worker Thread loadImage(url) setImage(...) beanstalkd.reserve(function(err, jobid, payload) The C# Way async Taskwork() { await Task.delay(200); return "done"; } async Task moreWork() { Console.WriteLine("Work started"); var str = await work(); 0 码力 | 39 页 | 1.01 MB | 2 年前3
Comprehensive Rust(日语) 202412並行性:PM 348 62 ようこそ 349 63 Asyncの基礎 350 63.1 async/await 350 63.2 Future 351 63.3 ランタイム 351 63.3.1 Tokio 352 63.4 タスク 353 64 チャネルと制御フロー 354 64.1 Async 354 64.2 Join 355 64.3 Select 65 落とし穴 357 65.1 エグゼキュータのプロック 357 65.2 Pin 358 65.3 Async 360 65.4 キャンセル 361 66 練習問題 364 66.1 Dining Philosophers —Async 364 66.2 プロードキャスト・チャットアプリ 365 66.3 解答 368 XV 最後に 372 Rust. We cover both classical concurrency (preemptively scheduling using threads and mutexes) and async/await concurrency (cooperative multitasking using futures). ## 本講座の対象外 Rust は非常に汎用性の高い言語であり、数日で全てを0 码力 | 381 页 | 1.36 MB | 1 年前3
Asynchronous programming in .NETContent What is Asynchronous Programming CPU-bound vs IO-bound Obsolete patterns Tasks and async/await Practical use cases • Responsive user interfaces (WPF, WinForms, etc) • Scalability and performance Count(n => Enumerable.Range(2, (int)Math.Sqrt(n) - 1).All(i => n % i > 0)); } Async code - After private async void Button_Click(object sender, RoutedEventArgs e) { int.TryParse(StartNumberTextBox TryParse(EndNumberTextBox.Text, out int end); ResultTextBlock.Text = ""; int result = await GetPrimesCount(start, end); ResultTextBlock.Text = "{{result}} prime numbers between {start}0 码力 | 29 页 | 942.73 KB | 2 年前3
CMakeLists.txtcppcon_add_test(async_initiate SOURCES async_event.cpp main.cpp pending.cpp LIBRARIES Asio::asio Catch2::Catch2 async_initiate)0 码力 | 1 页 | 130.00 B | 1 年前3
CMakeLists.txtadd_subdirectory(async_initiate) add_subdirectory(basic) add_subdirectory(complete) add_subdirectory(no_service) add_subdirectory(service)0 码力 | 1 页 | 139.00 B | 1 年前3
CMakeLists.txtcppcon_add_test(complete SOURCES async_event.cpp main.cpp pending.cpp service.cpp LIBRARIES Asia::asio Catch2::Catch2 complete)0 码力 | 1 页 | 130.00 B | 1 年前3
Creating a Sender/Receiver HTTP Serverinterface ## Basic Design • main() runs an event loop for network and timer events. • It uses an async_scope for outstanding work. • Initial work consist of accepting incoming client connections. • Each Sender/receiver networking: http://wg21.link/p2762 • Implementation: https://github.com/beman-project/net29 •Async scope: http://wg21.link/p3149 TechAtBloomberg.com0 码力 | 8 页 | 2.19 MB | 1 年前3
CMakeLists.txtcppcon_add_test(basic SOURCES async_event.cpp main.cpp pending.cpp LIBRARIES Asia::asio Catch2::Catch2 basic)0 码力 | 1 页 | 112.00 B | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
Await-TreeRust异步编程观测性调试工具Async CodeCoroutinesSendersAsyncStacksAsyncStackFramecoroutinesasync/awaitfiberssuspendable computationscontinuationsCargoBare-metalTokio响应式用户界面扩展性性能测试cppcon_add_testasync_initiateasync_event.cppmain.cpppending.cppCMakeLists.txtadd_subdirectorybasiccompleteservice.cppLIBRARIESsender/receiver HTTP serverasynchronous frameworkminimalistic networking interfaceevent loopasync_scope













