# 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/2tgcwfa
Golang 網絡 IO 模型源碼分析 - goroutinue-epoll
在瞭解 Golang 的網絡 IO 模型的具體實現之前,可以先了解一下 Linux 的幾種經典網絡模型Linux 經典網絡模型阻塞式 IO(BIO)應用進程從發起 IO 系統調用一直到返回結果,整個期間都是處於阻塞狀態,當前線程被掛起非阻塞式 IO(NIO)Socket 可以設置爲非阻塞,這樣應用進程可發起 IO 系統調用後可以立刻返回。輪詢發起的 IO 系統調用直到返回結束標識,需要應用進程不停 ⌘ Read more