wpilibsuite/wpilib-docs

Add documentation for multi-tasking/Notifier

開放

#1,940 建立於 2022年10月25日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (297 個分叉)auto 404
AdditionHelp Wanted

倉庫指標

星標
 (187 顆星)
PR 合併指標
 (平均合併 7天 6小時) (30 天內合併 14 個 PR)

描述

There is no documentation for how to use Notifier on the docs site. It would also be helpful to provide guidance on when threads/Notifier may be appropriate vs. .addPeriodic(). Peter Johnson's response on this thread on CD provides some good guidance.

There is a Scheduling Functions at Custom Frequencies page, but it only mentions that you do not need to use Notifier. It also doesn't point out that addPeriodic() is cooperative (on the main thread) where Notifier run on its own thread so it will not block the main robot loop.

貢獻者指南