You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets whether this instance is valid to be awaited.
48
-
/// </summary>
49
-
publicboolIsValid
50
-
// I would prefer to have a null ref only valid if the promise was created from Promise.Resolved, but it's more efficient to allow default values to be valid.
51
-
=>_ref?.GetIsValid(_id)!=false;
52
-
53
46
/// <summary>
54
47
/// Mark this as awaited and prevent any further awaits or callbacks on this.
55
48
/// <para/>NOTE: It is imperative to terminate your promise chains with Forget so that any uncaught rejections will be reported and objects repooled (if pooling is enabled).
/// Gets whether this instance is valid to be awaited.
63
-
/// </summary>
64
-
publicboolIsValid
65
-
// I would prefer to have a null ref only valid if the promise was created from Promise.Resolved, but it's more efficient to allow default values to be valid.
/// Gets whether this instance is valid to be awaited.
26
+
/// </summary>
27
+
[Obsolete("Due to object pooling, this property is inherently unsafe. This will be removed in a future version.",false),EditorBrowsable(EditorBrowsableState.Never)]
28
+
publicboolIsValid
29
+
// I would prefer to have a null ref only valid if the promise was created from Promise.Resolved, but it's more efficient to allow default values to be valid.
30
+
=>_ref?.GetIsValid(_id)!=false;
31
+
24
32
/// <summary>
25
33
/// Mark this as awaited and get a new <see cref="Promise{T}"/> of <typeparamref name="T"/> that inherits the state of this and can be awaited multiple times until <see cref="Forget"/> is called on it.
26
34
/// <para/><see cref="Forget"/> must be called when you are finished with it.
Copy file name to clipboardexpand all lines: Package/Core/Promises/Promise_Deprecated.cs
+8
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,14 @@ namespace Proto.Promises
13
13
{
14
14
partialstructPromise
15
15
{
16
+
/// <summary>
17
+
/// Gets whether this instance is valid to be awaited.
18
+
/// </summary>
19
+
[Obsolete("Due to object pooling, this property is inherently unsafe. This will be removed in a future version.",false),EditorBrowsable(EditorBrowsableState.Never)]
20
+
publicboolIsValid
21
+
// I would prefer to have a null ref only valid if the promise was created from Promise.Resolved, but it's more efficient to allow default values to be valid.
22
+
=>_ref?.GetIsValid(_id)!=false;
23
+
16
24
/// <summary>
17
25
/// Mark this as awaited and get a new <see cref="Promise"/> that inherits the state of this and can be awaited multiple times until <see cref="Forget"/> is called on it.
18
26
/// <para/><see cref="Forget"/> must be called when you are finished with it.
0 commit comments