material-motion / indefinite-observable-js Goto Github PK
View Code? Open in Web Editor NEWAn Observable for JavaScript that never calls complete or error
License: Apache License 2.0
An Observable for JavaScript that never calls complete or error
License: Apache License 2.0
The coverage badge points at develop: it should point at stable for releases.
Closed by 4443d15
Can't add the [$$observable]
line of
export interface Observable<T> {
subscribe(listener: Observer | Next): Subscription;
[$$observable](): Observable<T>;
}
because $$observable
throws this error:
TS1169: A computed property name in an interface must directly refer to a built-in symbol.
Symbol didn't exist until Safari 8, so using Symbol.observable
rather than $$observable
would affect our compatibility with Safari 8 for no user-justifiable reason.
What do?
IndefiniteSubject
isn't documented in the README and hasn't been implemented in Swift/Java. IndefiniteObservable
has. Therefore, v1.0.0 is blocked by documentation here and implementation across the platforms.
Potential solutions:
indefinite-subject
, delete the indefinite-observable
code, and depend on indefinite-observable
for types and wrapWithObserver
.indefinite-subject
into materal-motion-js/packages
.IndefiniteSubject.ts
(and the associated tests) into material-motion-js/packages/streams
First draft here: https://github.com/material-motion/indefinite-observable-js/tree/ci
Building on work of @tofuness in the other repo
From @jverkoey's over-the-shoulder code review.
What was creator
was changed to connect
on the docs branch, but that never made it back to develop.
I'd just do it, but since the native platforms are using subscriber, maybe we should be consistent.
Port .travis.yml
to circle.yml
and delete .travis.yml
.
Travis works, but we're using Circle to be compatible with Phabricator in the main repo, so we should be consistent here.
Should just be a simple index.html with a direct import of indefinite-observable.js
and inline JavaScript.
You probably shouldn't be able to call unsubscribe
on a subscription that isn't subscribed.
The TC39 spec tracks this in a boolean called closed
. Can we implement this while maintaining our goal of a fits-on-a-page minimal correct implementation?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.