Jonathan Grynspan

Results 89 issues of Jonathan Grynspan

Experimental `.serialized(for:)` trait. Example use cases: ```swift import Foundation @Test(.serialized(for: ProcessInfo.self)) func `HAS_FREEZER environment variable`() { _ = setenv("HAS_FREEZER", "1", 1) #expect(FoodTruck.hasFreezer) _ = setenv("HAS_FREEZER", "0", 1) #expect(!FoodTruck.hasFreezer) } @Test(.serialized(for:...

enhancement
concurrency
public-api
traits

Change our uses of the experimental `_read` to `yielding borrow`. The latter is ABI-compatible with the former per [SE-0474](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0474-yielding-accessors.md#abi-compatibility)

enhancement
public-api
exit-tests
attachments/activities
discovery
triaged

Right now we have minimal documentation for attachments. Need an article and to update the XCTest migration document.

documentation
enhancement
attachments/activities

Exit tests write over pipes to send data to/from the child process and should suppress `SIGPIPE` to avoid crashing either process on an edge case.

bug
linux
darwin
exit-tests
freebsd
openbsd

I've got some use cases for macros where I end up producing an expansion that calls other macros, and those other macros may produce diagnostics. Right now, they end up...

Macros

### Location https://github.com/swiftlang/swift-book/blob/d29368733ef0b2852c711a772b383cbfbb9b4740/TSPL.docc/ReferenceManual/Statements.md?plain=1#L1007 https://github.com/swiftlang/swift-book/blob/d29368733ef0b2852c711a772b383cbfbb9b4740/TSPL.docc/ReferenceManual/SummaryOfTheGrammar.md?plain=1#L701 ### Description The lists of valid OS names used with `os()` are incomplete, as the language supports a variety of other OS names such as `WASI`...

Content issue

This PR adds `CommandLine.executablePath`. We have use cases for this property in Swift Testing, Swift Argument Parser, Foundation, and other places; three use cases a stdlib API makes. Need to...

standard library
needs tests

This PR adds `CustomStringConvertible` conformance to `GUID` on Windows. This type is a currency type and being able to convert it to a string for display or debugging is very...

feature
Windows
CustomStringConvertible

This PR adjusts the documentation for `Mutex.withLockIfAvailable()` to clarify that it is not subject to spurious failures. The C11 and C++11 specs for their respective `tryLock()` APIs allow for spurious...

Concurrencу