Module tokio::loom::std::thread

source Β·

Structs§

  • AccessError πŸ”’
    An error returned by LocalKey::try_with.
  • Builder πŸ”’
    Thread factory, which can be used in order to configure the properties of a new thread.
  • JoinHandle πŸ”’
    An owned permission to join on a thread (block on its termination).
  • LocalKey πŸ”’
    A thread local storage key which owns its contents.
  • Thread πŸ”’
    A handle to a thread.
  • ThreadId πŸ”’
    A unique identifier for a running thread.

Functions§

  • current πŸ”’
    Gets a handle to the thread that invokes it.
  • panicking πŸ”’
    Determines whether the current thread is unwinding because of panic.
  • park πŸ”’
    Blocks unless or until the current thread’s token is made available.
  • park_timeout πŸ”’
    Blocks unless or until the current thread’s token is made available or the specified duration has been reached (may wake spuriously).
  • sleep πŸ”’
    Puts the current thread to sleep for at least the specified amount of time.
  • spawn πŸ”’
    Spawns a new thread, returning a JoinHandle for it.
  • yield_now πŸ”’

Type Aliases§