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
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->'R ->'U ,_:Using )=(fun s ->try body resource s finallyifnot(isNull (box resource))then resource.Dispose ()): 'R->'U
282
284
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Async<'U>,_:Using )= async.Using (resource, body)
283
285
#if!FABLE_COMPILER
284
-
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Task<'U>,_:Using )= Task.using resource body
286
+
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->Task<'U>,_:Using)= Task.using resource body
287
+
static memberUsing(resource:'T when 'T :>IDisposable,body:'T ->ValueTask<'U>,_:Using)= ValueTask.using resource body
/// <summary>Returns <paramref name="source"/> if it is not faulted, otherwise evaluates <paramref name="fallbackThunk"/> and returns the result.</summary>
303
+
///
304
+
/// <param name="fallbackThunk">A thunk that provides an alternate task computation when evaluated.</param>
305
+
/// <param name="source">The input task.</param>
306
+
///
307
+
/// <returns>The task if it is not faulted, else the result of evaluating <paramref name="fallbackThunk"/>.</returns>
308
+
/// <remarks><paramref name="fallbackThunk"/> is not evaluated unless <paramref name="source"/> is faulted.</remarks>
0 commit comments