Questions tagged «rebol»

4
在同步读取/写入端口时避免递归?
Rebol 3中的所有端口操作都是异步的。我发现进行同步通信的唯一方法是调用wait。 但是在这种情况下调用wait的问题是它将检查所有打开的端口的事件(即使它们不在传递给wait的端口块中)。然后他们调用响应的事件处理程序,但是可以在这些事件处理程序之一中进行读/写。这可能导致递归调用“等待”。 我该如何解决?
108 asynchronous  io  rebol  rebol3 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.