Skip to content

[SR-12982] Foundation: Stream.getBoundStreams not available #3251

@weissi

Description

@weissi
Previous ID SR-12982
Radar rdar://problem/64947425
Original Reporter @weissi
Type Bug
Environment
docker.io/swiftlang/swift:nightly-master-bionic
Swift version 5.3-dev (LLVM 6049ecf8a0, Swift 4205e46959)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
Votes 1
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: 7b395a96600be27ba3bccd448b599c4c

Issue Description:

I'm really not an expert in URLSession but I wanted to implement bidirectional streaming with it and I believe I require Stream.getBoundStreams for that (https://developer.apple.com/documentation/foundation/url_loading_system/uploading_streams_of_data).

But:

$ jw-docker-swift-master swift run
docker.io/swiftlang/swift:nightly-master-bionic
/Users/johannes/devel/URLSessionBidiStreaming/Sources/URLSessionBidiStreaming/main.swift:59:16: error: type 'Stream' has no member 'getBoundStreams'
        Stream.getBoundStreams(withBufferSize: 4096,
        ~~~~~~ ^~~~~~~~~~~~~~~

it seems like Streams.getBoundStreams isn't available on Linux.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions