MBrace.Runtime


Utils

Namespace: MBrace.Runtime.Utils

Nested types and modules

TypeDescription
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
ModuleDescription
Array
Disposable
Exn
Option

Functions and values

Function or valueDescription
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 extensionDescription
Diverge(?cancellationToken)
Signature: (cancellationToken:CancellationToken option) -> 'T
Type parameters: 'T

Computation that diverges on the current thread.

CompiledName: Thread.Diverge.Static

Logf(fmt)
Signature: fmt:StringFormat<'?51829,unit> -> '?51829
Type parameters: '?51829

CompiledName: ICloudLogger.Logf

Pickle(value)
Signature: value:'T -> byte []
Type parameters: 'T

CompiledName: ISerializer.Pickle

PostAndAsyncReply(msgB)
Signature: (msgB:(ReplyChannel<'R> -> 'Msg)) -> Async<'R>
Type parameters: 'R

CompiledName: MailboxProcessor`1.PostAndAsyncReply

PostAndReply(msgB)
Signature: (msgB:(ReplyChannel<'R> -> 'Msg)) -> 'R
Type parameters: 'R

CompiledName: MailboxProcessor`1.PostAndReply

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: Environment.ResolveEnvironmentVariable.Static

TriggerAsTask(t)
Signature: t:'T -> Task

CompiledName: Event`1.TriggerAsTask

TryAdd(key, value, ?forceUpdate)
Signature: (key:'TKey * value:'TValue * forceUpdate:bool option) -> bool

CompiledName: ConcurrentDictionary`2.TryAdd

TryFind(k)
Signature: k:'TKey -> 'TValue option

CompiledName: IDictionary`2.TryFind

UnPickle(pickle)
Signature: (pickle:byte []) -> 'T
Type parameters: 'T

CompiledName: ISerializer.UnPickle

Fork me on GitHub