Skip to content

infu/motoko_jazz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Jazz

Motoko jazz

Jazz rhythms can range from simple to extremely complex. However, underlying even the most complex rhythms performed by each individual musician in a jazz group is an underlying pulse (the beat)

Installation

-(Warning! Not production ready. Also currently it's very expensive)

Add this in your actor

  // JAZZ BEING ---
  let jazz = Jazz.Jazz();
  system func heartbeat() : async () { ignore jazz.heartbeat() };
  // JAZZ END -----

Usage

Delay

Execute a function after 5 seconds

    jazz.delay(5, func() : () {
        //...
    });

Retry

Execute a function up to 3 times with 5 seconds interval (retrying gets cancelled if the function returns true)

   ignore jazz.retry(3, 5, func() : async Bool {
      //....
      false;
    });

License MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages