support vane.thread.wait method.