Closed bosley closed 1 year ago
object
that can be expanded on later, but will use .
to access sub members(:= fut_name (future (fn p1 p2 p3 p4)))
(assert (eq true (fut_name.is_valid)))
(fut_name.wait_for 100)
(if (eq true (fut_name.is_ready)) (io::println "READY"))
(:= result (fut_name.get))
Using these futures we could setup things to process, then defer
the retrieval and returning of them.
Create a means to call functions in a thread or using async.
This will entail setting up a means to mutex data.
Consider making a "bridge"/ "channel" cell or something similar that could hold a thread-safe queue or something to pipe data through thread barriers. - This last bit might be best done as its own module, and operate something like:
Though, it may be possible to do this easily with a standard list cell and a function that mutexes the pushes and pops?
This will require experimentation.