# 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/giyersa
手動實現 Rust 中的 Channel,理解同步原語 CondVar
在今天的文章中,我們將通過手動實現 Rust 中的 Channel,來理解同步原語 CondVar、Arc 和 Mutex。我們使用 Rust 標準庫中的 VecDeque 隊列模擬 Rust Channel,VecDeque 是一個雙端隊列,作爲一個不斷增長的環形緩衝區。數據模型爲了使我們的解決方案更有條理,我們定義了 3 個結構體:TransmitterTransmitter 結構體 (tx) ⌘ Read more