class Async::IO::SSLServer
def accept(task: Task.current, **options)
def accept(task: Task.current, **options) peer, address = @server.accept(**options) wrapper = SSLSocket.new(peer, @context) return wrapper, address unless block_given? task.async do task.annotate "accepting secure connection #{address.inspect}" begin # You want to do this in a nested async task or you might suffer from head-of-line blocking. wrapper.accept yield wrapper, address ensure wrapper.close end end end