File tree Expand file tree Collapse file tree 4 files changed +47
-0
lines changed
main/java/com/google/firebase/concurrent
test/java/com/google/firebase/concurrent Expand file tree Collapse file tree 4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 14
14
15
15
package com .google .firebase .concurrent ;
16
16
17
+ import android .annotation .SuppressLint ;
17
18
import androidx .concurrent .futures .AbstractResolvableFuture ;
18
19
import java .util .concurrent .Delayed ;
19
20
import java .util .concurrent .ScheduledFuture ;
20
21
import java .util .concurrent .TimeUnit ;
21
22
23
+ // While direct use of AbstractResolvableFuture is not encouraged, it's stable for use and is not
24
+ // going to be removed. In this case it's required since we need to implement a ScheduledFuture so
25
+ // we can't use CallbackToFutureAdapter.
26
+ @ SuppressLint ("RestrictedApi" )
22
27
class DelegatingScheduledFuture <V > extends AbstractResolvableFuture <V >
23
28
implements ScheduledFuture <V > {
24
29
Original file line number Diff line number Diff line change
1
+ // Copyright 2022 Google LLC
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
+
1
15
package com .google .firebase .concurrent ;
2
16
3
17
import java .util .concurrent .Executor ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2022 Google LLC
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
+
1
15
package com .google .firebase .concurrent ;
2
16
3
17
import static com .google .common .truth .Truth .assertThat ;
Original file line number Diff line number Diff line change
1
+ // Copyright 2022 Google LLC
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
+
1
15
package com .google .firebase .concurrent ;
2
16
3
17
import com .google .firebase .annotations .concurrent .Background ;
You can’t perform that action at this time.
0 commit comments