Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow non-Sendable construction of UnxipStream.xip
DataReader (and potentially some of the bare sequences that people would want to use here) are intentionally not Sendable. Unxip.makeStream consumes them, but the UnxipStream.xip factory method takes them to set up generic parameters correctly. This conflicts with Sendable checking because the compiler thinks that the first call could stash away a reference, preventing it from being sent into unxip's isolation domain. However, these methods don't actually *do* anything with the parameter: we solely use it for its type. Serendipitously taking the parameter as @autoclosure (which we have no need to evaluate) is enough to satisfy the compiler that we have no interest in the parameter's value. Also, clean up some code I split up earlier and accidentally committed.
- Loading branch information