wrap

Wraps the given StateContainer with thread safety guarantees.

Return

A thread-safe wrapper around the given container

Parameters

container

The StateContainer to wrap