Skip to content

Commit

Permalink
explicitly identify Element for PostgresQueue.AsyncIterator (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
heckj committed Jun 28, 2024
1 parent c3eb825 commit 34ffe8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/HummingbirdJobsPostgres/PostgresJobsQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ public final class PostgresQueue: JobQueueDriver {
/// extend PostgresJobQueue to conform to AsyncSequence
extension PostgresQueue {
public struct AsyncIterator: AsyncIteratorProtocol {
public typealias Element = QueuedJob<JobID>

let queue: PostgresQueue

public func next() async throws -> Element? {
Expand Down

0 comments on commit 34ffe8d

Please sign in to comment.