Comments (19)
How about this https://gist.github.com/Blackrush/7345399 but users have to pass an Executor
to get emit
asynchronous which is very odd
from photon.
C'est une implem. details qui leak :(.
from photon.
Et j'aime bien l'idée de check que c'est un event qui peut être emit même si sans compile time check c'est pas super utile
from photon.
Où ça ça leak ? Pour le check des events faudrait les définir avant d'emit
from photon.
implicit val executor = Executors.newSingleThreadExecutor()
la classe/l'objet devraient pas avoir à s'occuper de ça
from photon.
Ouais, d'où mon commentaire plus haut mais je doute qu'un seul Executor pour toute la VM fasse l'affaire
from photon.
Mettre sa création dans le constructeur d'Event ?
from photon.
Un Thread par Observable ? Bof bof
from photon.
:(. même faire un pool par type serait juste faire le devin ...
from photon.
D'un autre côté, est-ce que c'est si important qu'emit
soit asynchrone ?
from photon.
Your idea ;)
from photon.
Oui j'sais bien :D mais j'voulais savoir ton avis
from photon.
non je pense pas que ça soit très important, et au pire on peut faire un overload AsyncObservable plus tard si le besoin s'en fait sentir.
from photon.
Voilà c'est fait, j'ai ajouté une méthode 'emitted' pour marquer les events potentiellement déclenchés. J'commit des que j'ai un accès internet.
from photon.
k nice :).
from photon.
Look b2c7a7c j'aime pas du tout Lid
mais j'savais pas comment faire autrement.
from photon.
Pourquoi t'en as vraiment besoin ? Pourquoi def event = self
?
from photon.
def event = self
c'était dans l'ancienne API, Lid
te permet d'unsubscribe
un event. Je ne peux pas simplement me baser sur le hash de Listener
qui peut changer (je pense notamment aux fonctions currifiées comme par exemple dans HandlerComponent.scala)
from photon.
oui j'ai bien répondu après :(.
from photon.
Related Issues (3)
- Database access HOT 5
- integrate a linting tool ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.