% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/share.R
\name{share_open}
\alias{share_open}
\title{Open an Existing Shared Object by Path}
\usage{
share_open(path, backing = c("mmap", "shm"), size = NULL)
}
\arguments{
\item{path}{Path to the shared segment.}

\item{backing}{Backing type: "mmap" or "shm".}

\item{size}{Size of the segment in bytes. If NULL, attempts to detect.}
}
\value{
A \code{shard_shared} object attached to the existing segment.
}
\description{
Opens a shared object that was created by another process. This is useful
for workers that need to attach to shared data without having the original
\code{shard_shared} object.
}
\examples{
\donttest{
shared <- share(1:50)
info <- shared_info(shared)
reopened <- share_open(info$path, backing = "mmap")
close(reopened)
close(shared)
}
}
