Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Aug 8, 2024
1 parent ee44579 commit 6fd05f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/General/ImageSource/AVAssetImageDataProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public struct AVAssetImageDataProvider: ImageDataProvider {
self.init(assetURL: assetURL, time: time)
}

public func data(handler: @escaping (Result<Data, Error>) -> Void) {
public func data(handler: @Sendable @escaping (Result<Data, Error>) -> Void) {
assetImageGenerator.generateCGImagesAsynchronously(forTimes: [NSValue(time: time)]) {
(requestedTime, image, imageTime, result, error) in
if let error = error {
Expand Down

0 comments on commit 6fd05f7

Please sign in to comment.