Closed chouzar closed 2 days ago
/// Adds default metadata for a registration. Which may be later accessed on a dispatch.
pub fn meta(registrant: Chip(msg, tag, group), metadata: metadata) {
todo
}
/// Like dispatch but this avoids side-effects by producing an up-front message.
/// Hesistant on this one as this wont work for protected Message types.
pub fn broadcast(registry: Registry(msg, tag, group), message: msg) -> Nil {
todo
}
/// Similar to above but receives metadata to generate the message.
pub fn broadcast(registry: Registry(msg, tag, group), message: fn(metadata) -> message) -> Nil {
todo
}
Divided into multiple issues.