2
상담원에게 상담원에게 전화를 걸 때 어떤 일이 일어나는지 주위를 감추고 있습니다.상담원을 호출하는 상담원
(defn testA []
"This returns 'top', whose value is 'bottom', whose value is 2."
(send top (fn [top-value]
(send bottom inc)))
(await top)
top)
(defn testB []
"This never terminates."
(send top (fn [top-value]
(send bottom inc)
(await bottom) ;;<- this is new
bottom))
(await top)
top)
내부 AWAIT에 무슨 일이 일어나고 무엇 :
(def top (agent 0))
(def bottom (agent 1))
나는 최소한의 쌍을 가지고? 한 상담원이 다른 상담원을 호출 할 때 어떤 요소가 작용합니까?