-
Notifications
You must be signed in to change notification settings - Fork 951
runtime timers are unimplemented #1037
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
TinyGo does not implement the |
Thanks for reply. I got it. |
So |
For now, if possible, use |
As a workaround, I wonder whether we could do something like |
Maybe we need to support Slightly-mismatched types would be much less of a problem if opaque pointer types were completed in LLVM. Unfortunately, it looks like it'll still take quite a while (if it is ever finished). Until then, maybe the simplest solution is the following: if a function to call has a changed linkname (with |
I was just doing some experimenting with trying to run https://github.com/mbertschler/dragon-iss-docking-autopilot using TinyGo and ran into this exact problem pretty quickly. Was reading the proposed work-arounds. Any more ideas on this currently, or do we just need to get #1008 merged in and proceed from there? |
#1008 is not really related, it would just make one implementation a bit easier. I had another idea how |
I still really would like to be able to write code like
|
Yes, and we will need this to support the stdlib testing package (which makes use of these timers). |
I have an implementation for timers and tickers, will clean up the patch and send a PR soon. |
Here is the PR: #1402 |
Any update on this ? |
I think I can take a look after #2011 has been merged. The current PR is way out of date. |
Any idea about when this could happen now #2011 has been merged ? |
Released as part of |
Using time.NewTicker causes a runtime error:
Error:
Compiled using the 0.12.0 docker image:
The text was updated successfully, but these errors were encountered: