powered by
A faster alternative to close for Sockets, Contexts, Listeners and Dialers avoiding S3 method dispatch.
close
reap(con)
Invisibly, an integer exit code (zero on success).
a Socket, Context, Listener or Dialer.
May be used on unclassed external pointers e.g. those created by .context.
.context
s <- socket("req") listen(s) dial(s) ctx <- .context(s) reap(ctx) reap(s[["dialer"]][[1]]) reap(s[["listener"]][[1]]) reap(s)
Run the code above in your browser using DataLab