github.com/haraldrudell/parl@v0.4.176/nb-chan-t-state.go (about)

     1  /*
     2  © 2023–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/)
     3  ISC License
     4  */
     5  
     6  package parl
     7  
     8  // Thread status values
     9  const (
    10  	NBChanExit      NBChanTState = "exit"     // NBChan thread is not running
    11  	NBChanAlert     NBChanTState = "alert"    // NBChan thread is always running and blocked idle waiting for alert
    12  	NBChanGets      NBChanTState = "GetWait"  // NBChan thread is blocked waiting for Get invocations to complete
    13  	NBChanSends     NBChanTState = "SendWait" // NBChan thread is blocked waiting for Send/SendMany invocations to complete
    14  	NBChanSendBlock NBChanTState = "chSend"   // NBChan thread is blocked in channel send
    15  	NBChanRunning   NBChanTState = "run"      // NBChan is running
    16  	NBChanNoLaunch  NBChanTState = "none"     // thread was never launched
    17  )
    18  
    19  // state of NBChan thread
    20  //   - NBChanExit NBChanAlert NBChanGets NBChanSends NBChanSendBlock
    21  //     NBChanRunning
    22  type NBChanTState string