Skip to content

Commit

Permalink
Fix tvOS and watchOS build
Browse files Browse the repository at this point in the history
  • Loading branch information
timvermeulen committed Oct 8, 2018
1 parent 8e52937 commit f487210
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Promise/BasicFuture/BasicFuture+Foundation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public extension BasicFuture {
return value!
}

@available(macOS 10.12, iOS 10.0, *)
@available(macOS 10.12, iOS 10.0, tvOS 10.0, watchOS 3.0, *)
func delayed(by interval: TimeInterval) -> BasicFuture {
return on(.main).async { resolve in
Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in resolve() }
Expand Down

0 comments on commit f487210

Please sign in to comment.