Make notes on needed docs

This commit is contained in:
Félix Saparelli 2021-08-22 20:26:48 +12:00
parent 350b85e0c7
commit 5b8611a8c0
No known key found for this signature in database
GPG Key ID: B948C4BAE44FC474
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,8 @@ use crate::{
#[non_exhaustive]
pub struct WorkingData {
pub throttle: Duration,
/// TODO: notes on how outcome is read immediately after handler returns
pub action_handler: Arc<AtomicTake<Box<dyn Handler<Action> + Send>>>,
}
@ -38,7 +40,8 @@ impl fmt::Debug for WorkingData {
impl Default for WorkingData {
fn default() -> Self {
Self {
throttle: Duration::from_millis(100),
// set to 50ms here, but will remain 100ms on cli until 2022
throttle: Duration::from_millis(50),
action_handler: Arc::new(AtomicTake::new(Box::new(()) as _)),
}
}