mostjs-community / most-help

raising and archiving FAQs, beginner doubt, need for general help (not involved with most dev) for cujojs/most
1 stars 0 forks source link

event emission outside most/create closures and dropping support for most.create #1

Open sourcevault opened 6 years ago

sourcevault commented 6 years ago

QUESTION 1

I know this must have been answered somewhere but ..

why is this an issue ?

(taken from @most/create)


// Unsupported:
let emitEvent, emitEnd, emitError

const stream = most.create((add, end, error) => {
  emitEvent = add
  emitEnd = end
  emitError = error
})

emitEvent(123)
emitEnd()

Is there something about lazy streams that makes supporting emission outside closures a bad idea ?

QUESTION 2

for most.create why is it a Backward compatible port

Backward compatible port of most.create as a separate package

davidchase commented 6 years ago

hey @sourcevault 👋 I'm curious are these questions you have here, something that you want answered from mostjs users or from the core team?

i think most-help within the mostjs community is an interesting idea i think it could definitely help folks using the library with some answers especially ones that have been answered and lost in slack or gitter conversations. I think its awesome to connect with people over those communication applications but having forums/github issues or indexed archives of QAs is still better IMO for discovery and dissemination of knowledge.

sourcevault commented 6 years ago

@davidchase hey !