chouzar / chip

Registry library for gleam
12 stars 2 forks source link

Add encode/decode capabiliites #5

Closed chouzar closed 1 month ago

chouzar commented 4 months ago

Currently we can only store subjects of a single type. If we had an encoder/decoder API we might be able to store subjects from different topics and return them accordingly.

let subject: process.Subject(String) = process.new_subject()
chip.register(registry, subject, to_event, from_event)
chouzar commented 1 month ago

No longer interested in solving this issue, but for something like this check: https://hexdocs.pm/singularity/