LaboratoryForPlayfulComputation / blockytalky

A toolkit for learning CS through networked physical computing
BSD 2-Clause "Simplified" License
28 stars 7 forks source link

Nested call to UserState Genserver when composing stateful operations #68

Closed mpahrens closed 6 years ago

mpahrens commented 6 years ago

When composing variable get inside a 'in _ seconds do' or anything similar, we have not exited the genserver call to make a new one, thus encountering deadlock.

Potential fix: make time operations (in/for _ seconds do) free lambda processes that we message with a time, and after that time expires, they kill themselves.

mpahrens commented 6 years ago

Fixed in master, changed update_var to not be deadlocking