Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PINCaching compiling in Xcode 12.0b6 (#275) #281

Merged
merged 1 commit into from
Sep 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/PINCaching.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ NS_ASSUME_NONNULL_BEGIN
/**
A callback block which provides only the cache as an argument
*/
typedef void (^PINCacheBlock)(id<PINCaching> cache);
typedef void (^PINCacheBlock)(__kindof id<PINCaching> cache);

/**
A callback block which provides the cache, key and object as arguments
*/
typedef void (^PINCacheObjectBlock)(id<PINCaching> cache, NSString *key, id _Nullable object);
typedef void (^PINCacheObjectBlock)(__kindof id<PINCaching> cache, NSString *key, id _Nullable object);

/**
A callback block used for enumeration which provides the cache, key and object as arguments plus a stop flag that
may be flipped by the caller.
*/
typedef void (^PINCacheObjectEnumerationBlock)(id<PINCaching> cache, NSString *key, id _Nullable object, BOOL *stop);
typedef void (^PINCacheObjectEnumerationBlock)(__kindof id<PINCaching> cache, NSString *key, id _Nullable object, BOOL *stop);

/**
A callback block which provides a BOOL value as argument
Expand Down