Class SingleThreadState<T>