1- // Copyright (c) 2008-2025, Hazelcast, Inc. All Rights Reserved.
1+ // Copyright (c) 2008-2025, Hazelcast, Inc. All Rights Reserved.
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
55// You may obtain a copy of the License at
6- //
6+ //
77// http://www.apache.org/licenses/LICENSE-2.0
8- //
8+ //
99// Unless required by applicable law or agreed to in writing, software
1010// distributed under the License is distributed on an "AS IS" BASIS,
1111// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -31,7 +31,7 @@ internal static class TaskExtensions
3131 public static bool IsCompletedSuccessfully ( this Task task )
3232 {
3333 if ( task == null ) throw new ArgumentNullException ( nameof ( task ) ) ;
34- #if NETFRAMEWORK || NETSTANDARD2_0
34+ #if NETSTANDARD2_0
3535 return task . IsCompleted && ! ( task . IsFaulted || task . IsCanceled ) ;
3636#else
3737 return task . IsCompletedSuccessfully ;
@@ -48,7 +48,7 @@ public static bool IsCompletedSuccessfully(this Task task)
4848 /// </remarks>
4949 public static bool IsCompletedSuccessfully ( this ValueTask task )
5050 {
51- #if NETFRAMEWORK || NETSTANDARD2_0
51+ #if NETSTANDARD2_0
5252 return task . IsCompleted && ! ( task . IsFaulted || task . IsCanceled ) ;
5353#else
5454 return task . IsCompletedSuccessfully ;
@@ -65,7 +65,7 @@ public static bool IsCompletedSuccessfully(this ValueTask task)
6565 /// </remarks>
6666 public static bool IsCompletedSuccessfully < T > ( this ValueTask < T > task )
6767 {
68- #if NETFRAMEWORK || NETSTANDARD2_0
68+ #if NETSTANDARD2_0
6969 return task . IsCompleted && ! ( task . IsFaulted || task . IsCanceled ) ;
7070#else
7171 return task . IsCompletedSuccessfully ;
0 commit comments