// Run => implementing the jobqueue interface method
Run => implementing the jobqueue interface method
// Run = > implementing the jobqueue interface method
func (aJob asyncJob) Run(ctx context.Context, jr JobRelated, args ...interface{}) {
	defer ctx.Done()
	fmt.Println(args[0], args[1])
	jr.Update(args[0].(string))
	time.Sleep(time.Duration(aJob.timeout) * time.Second) 
}
func ( aJob asyncJob ) Run ( ctx context . Context , jr JobRelated , args ... interface { } ) { defer ctx . Done ( ) fmt . Println ( args [ 0 ] , args [ 1 ] ) jr . Update ( args [ 0 ] . ( string ) ) time . Sleep ( time . Duration ( aJob . timeout ) * time . Second ) }
Run => implementing the jobqueue interface method
Run = > implementing the jobqueue interface method
// for simulating some intense work