Macro fp_rust::cor_yield_from[][src]

macro_rules! cor_yield_from {
    ($this : expr, $target : expr, $sent_to_inside : expr) => { ... };
}
Expand description

Make this sends a given Option<RECEIVETARGET> to target, and this method returns the Option<RETURNTARGET> response from target.

Arguments

  • this - The sender when sending sent_to_inside to target.
  • target - The receiver of value sent_to_inside sent by this.
  • sent_to_inside - The value sent by this and received by target.

Remarks

This method is implemented according to some coroutine/generator implementations, such as Python, Lua, ECMASript…etc.