{"id":2492360,"date":"2025-01-01T15:00:44","date_gmt":"2025-01-01T15:00:44","guid":{"rendered":"https:\/\/www.wacoca.com\/videos\/2492360\/celebrity\/"},"modified":"2025-01-01T15:00:44","modified_gmt":"2025-01-01T15:00:44","slug":"how-to-test-asynchronous-rust-programs-with-tokio-tutorial","status":"publish","type":"post","link":"https:\/\/www.wacoca.com\/videos\/2492360\/celebrity\/","title":{"rendered":"How to Test Asynchronous Rust Programs with Tokio [TUTORIAL]"},"content":{"rendered":"<p><iframe loading=\"lazy\"  width=\"580\" height=\"385\" src=\"https:\/\/www.youtube.com\/embed\/gCM2l3Z-yM8?modestbranding=1\" frameborder=\"0\" allowfullscreen><\/iframe><br \/>\n<br \/>\nLearn how to test your asynchronous and multi-threaded programs in Rust using the Tokio runtime! This comprehensive tutorial covers:<\/p>\n<p>&#8211; The tokio test attribute<br \/>\n&#8211; Using tokio test macros<br \/>\n&#8211; Tokio assertion macros (assert_pending macro, assert_ready macro, assert_ready_ok macro, assert_ready_err, assert_ready_eq macro)<br \/>\n&#8211; Testing timeouts \/ intervals efficiently<\/p>\n<p>Chapters:<br \/>\n00:00 The Problem<br \/>\n01:03 The Tokio Test Macro<br \/>\n04:13 Tokio Assertion Macros<br \/>\n08:15 Bonus (Working with Timeouts\/Intervals)<\/p>\n<p>Perfect for Rust developers looking to level up their async testing skills. Includes practical examples and common pitfalls to avoid.<\/p>\n<p>\ud83d\udcbb Here&#8217;s the link to the repository for the codebase: <\/p>\n<p>#RustLang #Programming #TokioRust #CodingTutorial #AsyncProgramming #RustProgramming #SoftwareDevelopment<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to test your asynchronous and multi-threaded programs in Rust using the Tokio runtime! This comprehe<\/p>\n","protected":false},"author":3,"featured_media":2492361,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[21045],"tags":[1582061,21047,21046,918451,592811,113700,21657,1387,22],"class_list":{"0":"post-2492360","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-celebrity","8":"tag-asynchronous","9":"tag-celebrities","10":"tag-celebrity","11":"tag-programs","12":"tag-rust","13":"tag-test","14":"tag-tokio","15":"tag-tutorial","16":"tag-vlog"},"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/posts\/2492360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/comments?post=2492360"}],"version-history":[{"count":0,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/posts\/2492360\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/media\/2492361"}],"wp:attachment":[{"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/media?parent=2492360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/categories?post=2492360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wacoca.com\/videos\/wp-json\/wp\/v2\/tags?post=2492360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}