DEV Community

Cover image for Pub/Sub: C implementation
NULLX
NULLX

Posted on

Pub/Sub: C implementation

Note: this implementation is not optimized as:

  • Unsubscribing sets NULL on subscriptions array. Would be good to delete NULL subscriptions from there.
  • Publishing message is done sequentially. The messages will be delivered in order of subscription.

Top comments (0)