human
I wrote the below code

    def handler(conn):
        try:
            (yield func(conn))
        finally:
            conn.close()
    listener = Listener(host, port)
    try:
        while True:
            conn = (yield listener.accept())
            (yield spawn(handler(conn)))
    except KeyboardInterrupt:
        pass
    finally:
        listener.close()

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def server(host, port, func):