Class BsonValueBackgroundRecycler
BSON Values background recycler. RecycleInBackground(BSONValue) may be used to move BSONValue recycling out of executing thread to save CPU resources where it is critical.
Inheritance
System.Object
BsonValueBackgroundRecycler
Namespace: Eco.Shared.Serialization
Assembly: Eco.Shared.dll
Syntax
public static class BsonValueBackgroundRecycler : Object
Methods
RecycleInBackground(BSONValue)
Recycles bsonValue
in background. Not guaranteed when it will be recycled. May be used in performance critical code to save CPU time on recycling, but usually it is better to use Recycle() for faster returning resources back to pool.
Declaration
public static void RecycleInBackground(this BSONValue bsonValue)
Parameters
Type | Name | Description |
---|---|---|
BSONValue | bsonValue |