# 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/3hqfbnq
Go 構建基礎的事件調度器**
當我們需要在一段時間後的特定時間或間隔運行任務時,我們需要使用任務調度系統來運行任務:例如發送電子郵件、推送通知、午夜關閉賬戶、清空表格等。在本文中,我們將構建一個基本的事件調度程序,使用數據庫作爲持久層來調度事件在特定時間段運行,這將使我們瞭解事件調度系統的工作原理。基本的工作機制是:每當我們需要調度事件時,計劃作業就會添加到數據庫中以在特定時間運行。另一個任務始終定期運行以檢查數據庫中的某些任 ⌘ Read more