Gjallarhorn


WeakRef

Namespace: Gjallarhorn.Internal

Helper module for dealing with weak references

Functions and values

Function or valueDescription
execute f wr
Signature: f:('a -> unit) -> wr:WeakReference<'a> -> bool
Type parameters: 'a

Execute a function on the contained value within a weak reference

test f wr
Signature: f:('a -> bool) -> wr:WeakReference<'a> -> bool * bool
Type parameters: 'a

Return true if a weak reference is still alive

toOption wr
Signature: wr:WeakReference<'?8605> -> '?8605 option
Type parameters: '?8605

Convert the WeakReference to an option

Fork me on GitHub