# resume

Fiber::resume

Resumes execution of the fiber with a value

# 

ENTITY

<div data-wrapper="1" role="Fiber">

public

</div>

<div data-wrapper="1" role="Fiber">

mixed

</div>

<div data-wrapper="1" role="Fiber">

Fiber::resume

</div>

<div data-wrapper="1" role="Fiber">

mixed

</div>

<div data-wrapper="1" role="Fiber">

value

</div>

<div data-wrapper="1" role="Fiber">

ENTITY

</div>

Resumes the fiber using the given value as the result of the current Fiber::suspend call.

If the fiber is not suspended when this method is called, a FiberError will be thrown.

# 

ENTITY

`value`  
The value to resume the fiber. This value will be the return value of the current Fiber::suspend call.

# 

ENTITY

The value provided to the next call to Fiber::suspend or ENTITY if the fiber returns. If the fiber throws an exception before suspending, it will be thrown from the call to this method.