Use FnMut instead of Fn in new_sample()
This change allows new_sample()
to accept closures with side-effects. It would give great convenience for multi-threading code. For example, one would pass a mutable channel receiver into the closure.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
This change allows new_sample()
to accept closures with side-effects. It would give great convenience for multi-threading code. For example, one would pass a mutable channel receiver into the closure.