RunWithSocket invokes the `run` function after acquiring the `Socket.Lock` and releases the lock when done.
(run func(socket zmq4.Socket) error)
| 110 | |
| 111 | // RunWithSocket invokes the `run` function after acquiring the `Socket.Lock` and releases the lock when done. |
| 112 | func (s *Socket) RunWithSocket(run func(socket zmq4.Socket) error) error { |
| 113 | s.Lock.Lock() |
| 114 | defer s.Lock.Unlock() |
| 115 | return run(s.Socket) |
| 116 | } |
| 117 | |
| 118 | type Kernel struct { |
| 119 | ir *interp.Interp |
no outgoing calls
no test coverage detected