Callback is the wrapper for function when sending.
(f func(*Partial))
| 41 | |
| 42 | // Callback is the wrapper for function when sending. |
| 43 | func Callback(f func(*Partial)) Function { |
| 44 | return Function{ |
| 45 | Caller: callback(f), |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | type callback func(*Partial) |
| 50 |