Why can I not delegate to a known class member? `...
# announcements
j
Why can I not delegate to a known class member?
Copy code
class Peer(val socket: AsynchronousSocketChannel): SendChannel<ByteArray> by sender {
    val sender = actor<ByteArray> {
        for (payload in channel) {
            socket.asyncWrite(ByteBuffer.wrap(payload))
        }
    }