{"action":"closed","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/22011","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/22011/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/22011/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/22011/events","html_url":"https://github.com/JuliaLang/julia/issues/22011","id":230259281,"number":22011,"title":"Docs JuliaLang Tasks example with MethodError","user":{"login":"hpoit","id":3711100,"avatar_url":"https://avatars1.githubusercontent.com/u/3711100?v=3","gravatar_id":"","url":"https://api.github.com/users/hpoit","html_url":"https://github.com/hpoit","followers_url":"https://api.github.com/users/hpoit/followers","following_url":"https://api.github.com/users/hpoit/following{/other_user}","gists_url":"https://api.github.com/users/hpoit/gists{/gist_id}","starred_url":"https://api.github.com/users/hpoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpoit/subscriptions","organizations_url":"https://api.github.com/users/hpoit/orgs","repos_url":"https://api.github.com/users/hpoit/repos","events_url":"https://api.github.com/users/hpoit/events{/privacy}","received_events_url":"https://api.github.com/users/hpoit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-22T00:16:38Z","updated_at":"2017-05-22T00:26:42Z","closed_at":"2017-05-22T00:26:42Z","body":"```\r\n               _\r\n   _       _ _(_)_     |  A fresh approach to technical computing\r\n  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org\r\n   _ _   _| |_  __ _   |  Type \"?help\" for help.\r\n  | | | | | | |/ _` |  |\r\n  | | |_| | | | (_| |  |  Version 0.5.0 (2016-09-19 18:14 UTC)\r\n _/ |\\__'_|_|_|\\__'_|  |  Official http://julialang.org/ release\r\n|__/                   |  x86_64-apple-darwin13.4.0\r\n\r\njulia> function producer(c::Channel)\r\n          put!(c, \"start\")\r\n          for n=1:4\r\n              put!(c, 2n)\r\n          end\r\n          put!(c, \"stop\")\r\n       end;\r\n\r\njulia> chnl = Channel(producer);\r\nERROR: MethodError: Cannot `convert` an object of type #producer to an object of type Channel{T}\r\nThis may have arisen from a call to the constructor Channel{T}(...),\r\nsince type constructors fall back to convert methods.\r\n in Channel{T}(::Function) at ./sysimg.jl:53\r\n\r\njulia> \r\n```\r\nhttps://docs.julialang.org/en/latest/manual/control-flow.html#man-tasks-1"}}
{"actor":{"display_login":"hpoit"}}