Proyectos de Subversion Iphone Microlearning

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
// Copyright 2019 Google
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
//      http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
 
15
#import <Foundation/Foundation.h>
16
 
17
/**
18
 *  Completion block that can be called in your subclass implementation. It is up to you when you
19
 *  want to call it.
20
 */
21
typedef void (^FIRCLSFABAsyncOperationCompletionBlock)(NSError *__nullable error);
22
 
23
/**
24
 *  FIRCLSFABAsyncOperation is a subclass of NSOperation that allows for asynchronous work to be
25
 *  performed, for things like networking, IPC or UI-driven logic. Create your own subclasses to
26
 *  encapsulate custom logic.
27
 *  @warning When subclassing to create your own operations, be sure to call -[finishWithError:] at
28
 *  some point, or program execution will hang.
29
 *  @see -[finishWithError:] in FIRCLSFABAsyncOperation_Private.h
30
 */
31
@interface FIRCLSFABAsyncOperation : NSOperation
32
 
33
/**
34
 *  Add a callback method for consumers of your subclasses to set when the asynchronous work is
35
 *  marked as complete with -[finishWithError:].
36
 */
37
@property(copy, nonatomic, nullable) FIRCLSFABAsyncOperationCompletionBlock asyncCompletion;
38
 
39
@end