Code Monkey home page Code Monkey logo

Comments (9)

Code-Hex avatar Code-Hex commented on June 15, 2024 4

@balajiv113 Thanks for creating a new issue!
I didn't know that! Thanks.

I will work for it in Sat (JST) because I'm a little busy 🙏

from vz.

Code-Hex avatar Code-Hex commented on June 15, 2024 1

I'm sorry too late.

This is a delegate method which meant that the method will be held by a different object than VZVirtualMachine, which has VZVirtualMachine as a property. So I may take a little time to design...

from vz.

Code-Hex avatar Code-Hex commented on June 15, 2024

Note that this understanding is wrong. They are not dependent on each other.

Support for VirtualMachine.networkDevices. With this support, we can use attachmentWasDisconnectedWithError to understand

Here is a good example. I use the delegate to use the GUI; the object we specify for delegate is not a VZVirtualMachine object.

from vz.

Code-Hex avatar Code-Hex commented on June 15, 2024

This is one idea, although the long method names are annoying.

vm, err := vz.NewVirtualMachine(config)
if err != nil {
  return err
}

vm.WatchNetworkDeviceAttachmentWasDisconnected(func(networkDevice *vz.NetworkDevice, err error) {
  // Do something here...
})

vm.Start()

from vz.

Code-Hex avatar Code-Hex commented on June 15, 2024

@balajiv113 Do you have any idea about this method signature?

from vz.

balajiv113 avatar balajiv113 commented on June 15, 2024

@Code-Hex you mean the signature of attachmentWasDisconnectedWithError ??

from vz.

Code-Hex avatar Code-Hex commented on June 15, 2024

@balajiv113 Yes, I think this usage is may difficult 🤔
#118 (comment)

from vz.

balajiv113 avatar balajiv113 commented on June 15, 2024

True but this was better compared to creating delegate object as a whole in go.

This will be extensible as well when new methods comes up as far as i see. Internally we will manage the delegate and users doesn't have to know much about it.

One thing to watch out is, we need to support both this and GUI delegate.

from vz.

Code-Hex avatar Code-Hex commented on June 15, 2024

@balajiv113 Thanks.

Yeah I think so :D

One thing to watch out is, we need to support both this and GUI delegate.

from vz.

Related Issues (20)

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.