Scryer-prolog: sleep/1 may be an interesting small project for Rust programmers

Created on 19 Apr 2020  路  3Comments  路  Source: mthom/scryer-prolog

As another small self-contained project that may attract more contributors (#319):

sleep(T) shall sleep for T seconds (a floating point number).

Rust provides thread::sleep() for this:

https://doc.rust-lang.org/std/thread/fn.sleep.html

library(time) would be a good place to provide sleep/1. See https://github.com/mthom/scryer-prolog/pull/367/commits/4693c23a4970cdc3437d75b1e61df768282b48fa for an example of how predicates can be added to Scryer.

good first issue

Most helpful comment

I made a PR.

All 3 comments

I made a PR.

Wow, thank you a lot! I have filed https://github.com/notoria/scryer-prolog/pull/3 to update the comment.

Perfect, I am closing this issue, since the pull request is already open.

https://github.com/mthom/scryer-prolog/pull/371

Many thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

triska picture triska  路  3Comments

notoria picture notoria  路  4Comments

UWN picture UWN  路  4Comments

srenatus picture srenatus  路  4Comments

cduret picture cduret  路  4Comments