swiftlang / swiftlang/swift-corelibs-libdispatch

[SR-15545] Linux: DispatchTime's advanced() is not implemented

Open
#601 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Foundation libdispatch Linux
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.