takeTimeout thread safe