Skip to content

Omit explicit pass goroutine #9

@bnyu

Description

@bnyu
go {
    $0.select(...)
}

$0 may cause unsafe use case (eg. pass it outside the closure or use it in another goroutine)
It also prevent to implement <- operator

We need define a static function something like:

func getG() -> Goroutine! {
    // return current goroutine like
    // Thread.current
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions