GithubHelp home page GithubHelp logo

Event Based crap about photon HOT 19 CLOSED

emudofus avatar emudofus commented on July 25, 2024
Event Based crap

from photon.

Comments (19)

volgar1x avatar volgar1x commented on July 25, 2024

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.

vendethiel avatar vendethiel commented on July 25, 2024

C'est une implem. details qui leak :(.

from photon.

vendethiel avatar vendethiel commented on July 25, 2024

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.

volgar1x avatar volgar1x commented on July 25, 2024

Où ça ça leak ? Pour le check des events faudrait les définir avant d'emit

from photon.

vendethiel avatar vendethiel commented on July 25, 2024
implicit val executor = Executors.newSingleThreadExecutor()

la classe/l'objet devraient pas avoir à s'occuper de ça

from photon.

volgar1x avatar volgar1x commented on July 25, 2024

Ouais, d'où mon commentaire plus haut mais je doute qu'un seul Executor pour toute la VM fasse l'affaire

from photon.

vendethiel avatar vendethiel commented on July 25, 2024

Mettre sa création dans le constructeur d'Event ?

from photon.

volgar1x avatar volgar1x commented on July 25, 2024

Un Thread par Observable ? Bof bof

from photon.

vendethiel avatar vendethiel commented on July 25, 2024

:(. même faire un pool par type serait juste faire le devin ...

from photon.

volgar1x avatar volgar1x commented on July 25, 2024

D'un autre côté, est-ce que c'est si important qu'emit soit asynchrone ?

from photon.

vendethiel avatar vendethiel commented on July 25, 2024

Your idea ;)

from photon.

volgar1x avatar volgar1x commented on July 25, 2024

Oui j'sais bien :D mais j'voulais savoir ton avis

from photon.

vendethiel avatar vendethiel commented on July 25, 2024

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.

volgar1x avatar volgar1x commented on July 25, 2024

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.

vendethiel avatar vendethiel commented on July 25, 2024

k nice :).

from photon.

volgar1x avatar volgar1x commented on July 25, 2024

Look b2c7a7c j'aime pas du tout Lid mais j'savais pas comment faire autrement.

from photon.

vendethiel avatar vendethiel commented on July 25, 2024

Pourquoi t'en as vraiment besoin ? Pourquoi def event = self ?

from photon.

volgar1x avatar volgar1x commented on July 25, 2024

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.

vendethiel avatar vendethiel commented on July 25, 2024

oui j'ai bien répondu après :(.

from photon.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.