Skip to content

Commit

Permalink
Update description for PrecursorService
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Apr 17, 2024
1 parent 2600f56 commit 1139189
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Sources/Hummingbird/Utils/PrecursorService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
import ServiceLifecycle

/// Wrap another service to run after a precursor closure has completed
struct PrecursorService<S: Service>: Service {
struct PrecursorService<S: Service>: Service, CustomStringConvertible {
let precursor: @Sendable () async throws -> Void
let service: S

var description: String {
"PrecursorService<\(S.self)>"
}

init(service: S, process: @escaping @Sendable () async throws -> Void) {
self.service = service
self.precursor = process
Expand Down

0 comments on commit 1139189

Please sign in to comment.