GithubHelp home page GithubHelp logo

Unsubscribe error about message-bus HOT 5 CLOSED

vardius avatar vardius commented on May 22, 2024
Unsubscribe error

from message-bus.

Comments (5)

lafer-m avatar lafer-m commented on May 22, 2024

@vardius

from message-bus.

vardius avatar vardius commented on May 22, 2024

Hi @lafer-m how urgent is it for you? can this w8 till weekend ?
Haven't tried case like that, would be good to add a test and make it work, I could sit on it on Saturday or Sunday unless you are in a rush then I could have a look tmr evening, but I am not sure how much time would it take.

Do you feel like adding a test with multiple different cases ?

from message-bus.

lafer-m avatar lafer-m commented on May 22, 2024

i try to used some stuct's method to subscribe, but i found can't delete handler in Unsubscribe , I'm still anxious, pls help me. i am new to golang, thank you very much. this is my test case https://play.golang.org/p/LmGN3h-lNiX ;

from message-bus.

vardius avatar vardius commented on May 22, 2024

I suppose you would have to assign it to variable like this https://play.golang.org/p/dCPrSQr0I_j
and then it should work

	f := &Foo{}
+	foo := f.Foo
-	value1 := reflect.ValueOf(f.Foo)
+	value1 := reflect.ValueOf(foo)
-	value2 := reflect.ValueOf(f.Foo)
+	value2 := reflect.ValueOf(foo)

from message-bus.

lafer-m avatar lafer-m commented on May 22, 2024

thank you. @vardius

from message-bus.

Related Issues (6)

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.