## Macro: SB-THREAD:RETURN-FROM-THREAD [](../) [](../#macro) > Unwinds from and terminates the current thread, with values from > VALUES-FORM as the results visible to JOIN-THREAD. > > If current thread is the main thread of the process (see > MAIN-THREAD-P), signals an error unless ALLOW-EXIT is true, as > terminating the main thread would terminate the entire process. If > ALLOW-EXIT is true, returning from the main thread is equivalent to > calling SB-EXT:EXIT with :CODE 0 and :ABORT NIL. > > See also: ABORT-THREAD and SB-EXT:EXIT. ### Lambda list ```cl (sb-thread::values-form &key sb-thread::allow-exit) ```