lambdust 0.1.1

A Scheme dialect with gradual typing and effect systems
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Thread-specific effect state management.

use crate::effects::{Effect, EffectContext};
use std::time::SystemTime;

/// Effect state for a specific thread.
#[derive(Debug, Clone)]
pub struct ThreadEffectState {
    /// Current effect context for this thread
    pub context: EffectContext,
    /// Effects currently active in this thread
    pub active_effects: Vec<Effect>,
    /// Generation counter for this thread's effects
    pub generation: u64,
    /// Last update timestamp
    pub last_updated: SystemTime,
}