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 sendingsent_to_inside
totarget
.target
- The receiver of valuesent_to_inside
sent bythis
.sent_to_inside
- The value sent bythis
and received bytarget
.
Remarks
This method is implemented according to some coroutine/generator implementations,
such as Python
, Lua
, ECMASript
…etc.