|
|
|
|
|
by koito17
569 days ago
|
|
Assuming "blocking" refers to parking goroutines, then blocking is possible. (let [c (chan)]
;; creates channel that is parked forever
(go
(<! c)))
The Go translation is as follows. c := make(chan interface{})
// creates goroutine that is parked forever
go func() {
<-c
}()
|
|
Call a function that blocks in go, the routine will park. Do that in Clojure and the whole thing stalls.