# I am the Watcher. I am your guide through this vast new twtiverse.
#
# Usage:
# https://watcher.sour.is/api/plain/users View list of users and latest twt date.
# https://watcher.sour.is/api/plain/twt View all twts.
# https://watcher.sour.is/api/plain/mentions?uri=:uri View all mentions for uri.
# https://watcher.sour.is/api/plain/conv/:hash View all twts for a conversation subject.
#
# Options:
# uri Filter to show a specific users twts.
# offset Start index for quey.
# limit Count of items to return (going back in time).
#
# twt range = 1 1
# self = https://watcher.sour.is/conv/tik4uka
Rust Async 4- 理解 Future
這次我們利用 tokio 這個庫來嘗試理解 Future。 Tokio 運行時就是管理異步任務並安排他們在 CPU 上執行的組件。如上圖,一個程序可能生成多個任務,每個任務可能包含一個或多個 Future。 下面我們寫一個自定義的 Future,來進行深入的理解。程序結構大致如下: 程序代碼如下:這裏:· 第 2 行:引入了一個特 ⌘ Read more