Utils
Namespace: MBrace.Runtime.Utils
Nested types and modules
Type | Description |
AppDomainId | Serializable AppDomain identifier object |
Existential | Type existential container |
Existential<'T> | Existential container of type 'T |
Exn<'T> | Value or exception |
IAsyncFunc<'R> | Generic asynchronous function |
IFunc<'R> | Generic function |
MachineId | Serializable machine identifier object |
ProcessId | Serializable process identifier object |
ReferenceEqualityComparer<'T> | |
ReplyChannel<'T> | MailboxProcessor ReplyChannel with exception support |
SerializableFactory<'T> | A Serializable value container that only serializes its factory rather than the actual value. |
SerializableFactory | A Serializable value container that only serializes its factory rather than the actual value. |
WorkingDirectory |
Module | Description |
Array | |
Disposable | |
Exn | |
Option |
Functions and values
Function or value | Description |
areReflectiveEqual x y
Signature: x:'T -> y:'T -> bool
Type parameters: 'T |
reflection-based equality check checks if args are of identical underlying type before checking equality used to protect against incomplete equality implementations in interfaces that demand equality |
compare2 t1 s1 t2 s2
Signature: t1:'T -> s1:'S -> t2:'T -> s2:'S -> int
Type parameters: 'T, 'S |
lexicographic comparison without tuple allocation |
compare3 t1 s1 u1 t2 s2 u2
Signature: t1:'T -> s1:'S -> u1:'U -> t2:'T -> s2:'S -> u2:'U -> int
Type parameters: 'T, 'S, 'U |
lexicographic comparison without tuple allocation |
compare4 t1 s1 u1 v1 t2 s2 u2 v2
Signature: t1:'T -> s1:'S -> u1:'U -> v1:'V -> t2:'T -> s2:'S -> u2:'U -> v2:'V -> int
Type parameters: 'T, 'S, 'U, 'V |
lexicographic comparison without tuple allocation |
concurrentMemoize f
Signature: f:('T -> 'S) -> 'T -> 'S
Type parameters: 'T, 'S |
Thread-safe memoization combinator. |
getHumanReadableByteSize size
Signature: size:int64 -> string
|
generates a human readable string for byte sizes including a KiB, MiB, GiB or TiB suffix depending on size |
getReflectedType o
Signature: o:obj -> Type
|
Gets the actual System.Type of the underlying object |
hash2 t s
Signature: t:'T -> s:'S -> int
Type parameters: 'T, 'S |
pair hashcode generation without tuple allocation |
hash3 t s u
Signature: t:'T -> s:'S -> u:'U -> int
Type parameters: 'T, 'S, 'U |
triple hashcode generation without tuple allocation |
hash4 t s u v
Signature: t:'T -> s:'S -> u:'U -> v:'V -> int
Type parameters: 'T, 'S, 'U, 'V |
quadruple hashcode generation without tuple allocation |
hset xs
Signature: xs:seq<'T> -> HashSet<'T>
Type parameters: 'T |
|
runsOnMono
Signature: bool
|
Type extensions
Type extension | Description |
Diverge(?cancellationToken)
Signature: (cancellationToken:CancellationToken option) -> 'T
Type parameters: 'T |
Computation that diverges on the current thread. CompiledName: |
Logf(fmt)
Signature: fmt:StringFormat<'?51829,unit> -> '?51829
Type parameters: '?51829 |
CompiledName: |
Pickle(value)
Signature: value:'T -> byte []
Type parameters: 'T |
CompiledName: |
PostAndAsyncReply(msgB)
Signature: (msgB:(ReplyChannel<'R> -> 'Msg)) -> Async<'R>
Type parameters: 'R |
CompiledName: |
PostAndReply(msgB)
Signature: (msgB:(ReplyChannel<'R> -> 'Msg)) -> 'R
Type parameters: 'R |
CompiledName: |
ResolveEnvironmentVariable(variableName)
Signature: variableName:string -> string
|
Resolves an environment variable from the local machine. Variables are resolved using the following target order: Process, User and finally, Machine. CompiledName: |
TriggerAsTask(t)
Signature: t:'T -> Task
|
CompiledName: |
TryAdd(key, value, ?forceUpdate)
Signature: (key:'TKey * value:'TValue * forceUpdate:bool option) -> bool
|
CompiledName: |
TryFind(k)
Signature: k:'TKey -> 'TValue option
|
CompiledName: |
UnPickle(pickle)
Signature: (pickle:byte []) -> 'T
Type parameters: 'T |
CompiledName: |