Skip to content

question: how to stop rpc server #5

Closed
@ghost

Description

Hi,

This might be more of a rust question, but how do I stop EzRpcServer? I have a test that starts the server in a child task, and I'd like to stop it when the test finishes. The test below passes, but then it hangs presumably because the server is still running.

#[test]
fn my_test() {
    spawn(proc() {
        let rpc_server = EzRpcServer::new("127.0.0.1:12345").unwrap();
    });
    // Do things.
}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions