{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/10589","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/10589/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/10589/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/10589/events","html_url":"https://github.com/JuliaLang/julia/issues/10589","id":63276743,"number":10589,"title":"Tcpsocket and @async problem","user":{"login":"freddycct","id":1184555,"avatar_url":"https://avatars.githubusercontent.com/u/1184555?v=3","gravatar_id":"","url":"https://api.github.com/users/freddycct","html_url":"https://github.com/freddycct","followers_url":"https://api.github.com/users/freddycct/followers","following_url":"https://api.github.com/users/freddycct/following{/other_user}","gists_url":"https://api.github.com/users/freddycct/gists{/gist_id}","starred_url":"https://api.github.com/users/freddycct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freddycct/subscriptions","organizations_url":"https://api.github.com/users/freddycct/orgs","repos_url":"https://api.github.com/users/freddycct/repos","events_url":"https://api.github.com/users/freddycct/events{/privacy}","received_events_url":"https://api.github.com/users/freddycct/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T18:13:26Z","updated_at":"2015-03-20T21:11:28Z","closed_at":"2015-03-20T21:05:00Z","body":"```\r\nfunction f()\r\n    task1 = @async begin\r\n        server = listen(2000)\r\n        socket = accept(server)\r\n    end\r\n\r\n    socket = wait(task1)\r\n    println(typeof(socket))\r\nend\r\n\r\nf()\r\n```\r\n\r\nError: socket is undefined\r\n\r\nI get the error that socket is undefined. This works in REPL but not when the program is executed from inside a function f()\r\n\r\nNote: Julia v 0.36"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/84148235","html_url":"https://github.com/JuliaLang/julia/issues/10589#issuecomment-84148235","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/10589","id":84148235,"user":{"login":"freddycct","id":1184555,"avatar_url":"https://avatars.githubusercontent.com/u/1184555?v=3","gravatar_id":"","url":"https://api.github.com/users/freddycct","html_url":"https://github.com/freddycct","followers_url":"https://api.github.com/users/freddycct/followers","following_url":"https://api.github.com/users/freddycct/following{/other_user}","gists_url":"https://api.github.com/users/freddycct/gists{/gist_id}","starred_url":"https://api.github.com/users/freddycct/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freddycct/subscriptions","organizations_url":"https://api.github.com/users/freddycct/orgs","repos_url":"https://api.github.com/users/freddycct/repos","events_url":"https://api.github.com/users/freddycct/events{/privacy}","received_events_url":"https://api.github.com/users/freddycct/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T21:11:28Z","updated_at":"2015-03-20T21:11:28Z","body":"So only available on v0.4 but not v0.3+ ?"}}