swiftlang / swiftlang/swift-corelibs-libdispatch
[SR-15545] Linux: DispatchTime's advanced() is not implemented
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 2.6k
- Forks
- 496
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
| Previous ID | SR-15545 |
| Radar | rdar://problem/86121705 |
| Original Reporter | @mickeyl |
| Type | Bug |
Environment
Linux, Swift 5.5.1
Additional Detail from JIRA
| Votes | 0 |
| Component/s | Foundation, libdispatch |
| Labels | Bug |
| Assignee | None |
| Priority | Medium |
md5: 157586149b00dd566deea025dfd42ae0
Issue Description:
Adapter.swift:262:41: error: value of type 'DispatchTime' has no member 'advanced'
timer.schedule(deadline: .now().advanced(by: .milliseconds(self.busTimeout)))
This is implemented in macOS.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Adapter.swift:262, where Linux fails to find DispatchTime.advanced, and compare the corresponding macOS implementation. Run the relevant Linux Swift 5.5.1 build or tests after making the platform behavior consistent; done means the adapter compiles without this error and the deadline calculation works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100