tchange ( ..a key quot: ( ..a value -- ..b newvalue ) -- ..b )
Factor handbook » The language » Co-operative threads » Thread-local state and variables

Prev:tset ( value key -- )
Next:threads ( -- assoc )


Vocabulary
threads

Inputs
keyan object
quota quotation with stack effect ( ..a value -- ..b newvalue )


Outputs
None

Word description
Applies the quotation to the current value of a thread-local variable, storing the result back to the same variable.

Definition


: tchange
( ..a key quot: ( ..a value -- ..b newvalue ) -- ..b )
[ tnamespace ] dip change-at ; inline