Seitu
Core

Subscription

Subscribe/notify primitive used by every reactive handle.

createSubscription()

Subscribe/notify primitive used by every reactive handle.

  • onFirstSubscribe attaches on first subscriber and cleans up on last.
  • notify calls every subscriber; the first throw is rethrown after the loop.
  • size is the subscriber count.

Examples

import {  } from 'seitu'

const { , ,  } = ({
  : () => {
    const  = (, 1000)
    return () => ()
  },
})

Edit on GitHub

Last updated on

On this page